Built FIPS Go 1.20 from branch

This commit is contained in:
Clemens Beck 2023-08-21 19:02:09 +02:00
parent 0231fd714e
commit 8358164a33
No known key found for this signature in database
GPG key ID: 4EC101F2BFCCFEFA

View file

@ -29,12 +29,9 @@ function build_ubi() {
cd /usr/local/go/src
PATH=$PATH:/tmp/golang/go/bin CGO_ENABLED=1 ./make.bash
else
# This is a workaround until https://github.com/golang-fips/go/issues/82 is resolved.
if [[ $GO_MAJOR_VERSION == "1.20" ]]; then
GO_BRANCH="go1.20.6-1-openssl-fips"
# This is a workaround until https://github.com/golang-fips/go/pull/107 is released.
elif [[ $GO_MAJOR_VERSION == "1.21" ]]; then
GO_BRANCH="go1.20.6-1-openssl-fips"
if [[ $GO_MAJOR_VERSION == "1.21" ]]; then
GO_BRANCH="go1.20-fips-release"
else
GO_BRANCH="go${GO_MAJOR_VERSION}-fips-release"
fi