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

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-04-28 18:03:16 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-04-28 18:06:49 +0300
commit6e3082789326071e6be0b2d8f3ac52f86b2a12a6 (patch)
treeaf5365badf64e11e26089a4060018b2612287203
parent9857f7d70983e7af2f0702035c67743d9e1fa3c0 (diff)
Remove CGO_ENABLED var from makefiles
-rw-r--r--Makefile3
-rw-r--r--Makefile.build.mk1
-rw-r--r--Makefile.util.mk2
3 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4644eeec..b2a818f7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,6 @@
IMPORT_PATH := gitlab.com/gitlab-org/gitlab-pages
V := 1
-# GitLab Pages is statically compiled without CGO to help it in chroot mode
-export CGO_ENABLED := 0
-
include Makefile.build.mk
include Makefile.util.mk
include Makefile.internal.mk
diff --git a/Makefile.build.mk b/Makefile.build.mk
index c598e4c7..3289573d 100644
--- a/Makefile.build.mk
+++ b/Makefile.build.mk
@@ -3,7 +3,6 @@ GO_BUILD_TAGS := continuous_profiler_stackdriver
FIPS_MODE ?= 0
ifeq ($(FIPS_MODE), 1)
GO_BUILD_TAGS := $(GO_BUILD_TAGS),fips
- CGO_ENABLED := 1
endif
# To compute a unique and deterministic value for GNU build-id, we build the Go binary a second time.
diff --git a/Makefile.util.mk b/Makefile.util.mk
index c00cf08e..82eafd3b 100644
--- a/Makefile.util.mk
+++ b/Makefile.util.mk
@@ -16,7 +16,7 @@ test: .GOPATH/.ok bin/gotestsum gitlab-pages
./bin/gotestsum --junitfile junit-test-report.xml --format testname -- ./... ${ARGS}
race: .GOPATH/.ok bin/gotestsum gitlab-pages
- CGO_ENABLED=1 ./bin/gotestsum --junitfile junit-test-report.xml --format testname -- -race $(if $V,-v) ./... ${ARGS}
+ ./bin/gotestsum --junitfile junit-test-report.xml --format testname -- -race $(if $V,-v) ./... ${ARGS}
acceptance: .GOPATH/.ok bin/gotestsum gitlab-pages
./bin/gotestsum --junitfile junit-test-report.xml --format testname -- $(if $V,-v) ./test/acceptance ${ARGS}