Skip to content

Commit

Permalink
[feature] build with boring crypto where available (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweomer authored Oct 4, 2024
1 parent 991f5b6 commit 3406d54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
- cosign_version=v2.2.3+carbide.3

builds:
- main: cmd/hauler/main.go
- dir: ./cmd/hauler/.
goos:
- linux
- darwin
Expand All @@ -39,6 +39,7 @@ builds:
- rm -rf cmd/hauler/binaries
env:
- CGO_ENABLED=0
- GOEXPERIMENT=boringcrypto

universal_binaries:
- replace: false
Expand Down
6 changes: 6 additions & 0 deletions cmd/hauler/boringcrypto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build boringcrypto
// +build boringcrypto

package main

import _ "crypto/tls/fipsonly"

0 comments on commit 3406d54

Please sign in to comment.