Skip to content

Commit e654d8b

Browse files
committed
Move CGO_ENABLED as a global export
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 2efd395 commit e654d8b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

GNUmakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ WEBSITE_REPO=github.com/hashicorp/terraform-website
33
PKG_NAME=github
44

55
COVERAGEARGS?=-race -coverprofile=coverage.txt -covermode=atomic
6+
export CGO_ENABLED=0
67

78
# VARIABLE REFERENCE:
89
#
@@ -31,7 +32,7 @@ tools:
3132
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.0
3233

3334
build: lintcheck
34-
CGO_ENABLED=0 go build -ldflags="-s -w" ./...
35+
go build -ldflags="-s -w" ./...
3536

3637
fmt:
3738
@echo "==> Fixing source code formatting..."
@@ -67,7 +68,7 @@ test-compile:
6768
echo " make test-compile TEST=./$(PKG_NAME)"; \
6869
exit 1; \
6970
fi
70-
CGO_ENABLED=0 go test -c $(TEST) $(TESTARGS)
71+
go test -c $(TEST) $(TESTARGS)
7172

7273
website:
7374
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))

0 commit comments

Comments
 (0)