Drop Go 1.21 FIPS workaround

This commit is contained in:
Stan Hu 2023-10-10 06:00:37 +00:00 committed by Balasankar 'Balu' C
parent 8e516affde
commit 9bce751873
3 changed files with 22 additions and 9 deletions

View file

@ -29,12 +29,7 @@ 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/pull/107 is released.
if [[ $GO_MAJOR_VERSION == "1.21" ]]; then
GO_BRANCH="go1.20-fips-release"
else
GO_BRANCH="go${GO_MAJOR_VERSION}-fips-release"
fi
GO_BRANCH="go${GO_MAJOR_VERSION}-fips-release"
git clone https://github.com/golang-fips/go.git --branch "${GO_BRANCH}" --single-branch --depth 1 /tmp/golang-fips
cd /tmp/golang-fips