@@ -56,6 +56,9 @@ GO_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.go' -not -nam
56
56
# All the shell files in the repo, excluding ignored files.
57
57
SHELL_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS ) -type f -name '* .sh')
58
58
59
+ # Ensure we don't use the user's git configs which might cause side-effects
60
+ GIT_FLAGS = GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null
61
+
59
62
# All ${OS}_${ARCH} combos we build for. Windows binaries have the .exe suffix.
60
63
OS_ARCHES := \
61
64
linux_amd64 linux_arm64 linux_armv7 \
@@ -739,7 +742,7 @@ site/.eslintignore site/.prettierignore: .prettierignore Makefile
739
742
done < " $<"
740
743
741
744
test :
742
- gotestsum --format standard-quiet -- -v -short -count=1 ./...
745
+ $( GIT_FLAGS ) gotestsum --format standard-quiet -- -v -short -count=1 ./...
743
746
.PHONY : test
744
747
745
748
# sqlc-cloud-is-setup will fail if no SQLc auth token is set. Use this as a
@@ -775,7 +778,7 @@ sqlc-vet: test-postgres-docker
775
778
test-postgres : test-postgres-docker
776
779
# The postgres test is prone to failure, so we limit parallelism for
777
780
# more consistent execution.
778
- DB=ci DB_FROM=$(shell go run scripts/migrate-ci/main.go) gotestsum \
781
+ $( GIT_FLAGS ) DB=ci DB_FROM=$(shell go run scripts/migrate-ci/main.go) gotestsum \
779
782
--junitfile=" gotests.xml" \
780
783
--jsonfile=" gotests.json" \
781
784
--packages=" ./..." -- \
@@ -824,7 +827,7 @@ test-postgres-docker:
824
827
825
828
# Make sure to keep this in sync with test-go-race from .github/workflows/ci.yaml.
826
829
test-race :
827
- gotestsum --junitfile=" gotests.xml" -- -race -count=1 ./...
830
+ $( GIT_FLAGS ) gotestsum --junitfile=" gotests.xml" -- -race -count=1 ./...
828
831
.PHONY : test-race
829
832
830
833
test-tailnet-integration :
0 commit comments