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 <noreply@anthropic.com>
This commit is contained in:
silverwindandClaude Opus 4.6 committed 2026-02-20 04:24:04 +01:00
1 parent a2d1138d5c
commit 6b5fa8407d
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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