From 6b5fa8407deb46f65f63ed126476909b8e02ea3a Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 20 Feb 2026 04:24:04 +0100 Subject: [PATCH] Fix CGO_ENABLED for e2e binary build, enable debug on CI The test-e2e target uses TEST_TAGS (not TAGS) so the Makefile's automatic CGO_ENABLED=1 detection for sqlite didn't trigger. Set CGO_ENABLED=1 explicitly in the build command. Also enable GITEA_TEST_E2E_DEBUG on CI to see server output on failure. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/pull-e2e-tests.yml | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-e2e-tests.yml b/.github/workflows/pull-e2e-tests.yml index aac5602e6a..8ea9057d2f 100644 --- a/.github/workflows/pull-e2e-tests.yml +++ b/.github/workflows/pull-e2e-tests.yml @@ -38,3 +38,4 @@ jobs: timeout-minutes: 10 env: FORCE_COLOR: 1 + GITEA_TEST_E2E_DEBUG: 1 diff --git a/Makefile b/Makefile index ae71758a8a..656ba8a3bf 100644 --- a/Makefile +++ b/Makefile @@ -535,7 +535,7 @@ playwright: deps-frontend .PHONY: test-e2e test-e2e: playwright - $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TEST_TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o gitea-e2e + CGO_ENABLED=1 $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TEST_TAGS)' -ldflags '-s -w $(EXTLDFLAGS) $(LDFLAGS)' -o gitea-e2e @EXECUTABLE=gitea-e2e ./tools/test-e2e.sh $(GITEA_TEST_E2E_FLAGS) .PHONY: bench-sqlite