Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'workhorse/Makefile')
-rw-r--r--workhorse/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/workhorse/Makefile b/workhorse/Makefile
index 4236a1a0d8e..ac6c5456340 100644
--- a/workhorse/Makefile
+++ b/workhorse/Makefile
@@ -27,6 +27,11 @@ ifeq (${FIPS_MODE}, 1)
# If the golang-fips compiler is built with CGO_ENABLED=0, this needs to be
# explicitly switched on.
export CGO_ENABLED=1
+ # Go 1.19+ now requires GOEXPERIMENT=boringcrypto for FIPS compilation.
+ # See https://github.com/golang/go/issues/51940 for more details.
+ ifeq ($(shell GOEXPERIMENT=boringcrypto go version > /dev/null 2>&1; echo $$?), 0)
+ export GOEXPERIMENT=boringcrypto
+ endif
endif
MINIMUM_SUPPORTED_GO_VERSION := 1.11