Skip to content

Commit

Permalink
snapcraft: verify that we are using Go FIPS toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Sep 12, 2024
1 parent 2704cbd commit 6f7de3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-aux/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ parts:
if [ -f fips-build ] ; then
# use the fips channel of Go
snap refresh --channel "$GO_TOOLCHAIN_FIPS_CHANNEL" go
# make sure it is really the Go FIPS toolchain
if ! test -f /snap/go/current/src/crypto/internal/backend/openssl_linux.go; then
echo "Go 1.21 FIPS toolchain not found"
exit 1
fi
fi
# make sure to set the version we declared in pull
./mkversion.sh "$VERSION"
Expand Down

0 comments on commit 6f7de3b

Please sign in to comment.