Skip to content

Commit 29c7517

Browse files
committed
ci: build the end-to-end module with cgo off again
The DuckDB golden imports the DuckDB driver, which is cgo, so it is left out of that build and checked by the replay suite alone. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015rfiHyC4iRLyRWc3UmYEtT
1 parent 5675ff3 commit 29c7517

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ jobs:
4747
env:
4848
CGO_ENABLED: "0"
4949

50-
# The DuckDB driver the generated code imports is cgo, so this build
51-
# keeps cgo on.
50+
# The DuckDB golden imports the DuckDB driver, which is cgo, so it is
51+
# left out of this build and checked by the replay suite alone.
5252
- name: build internal/endtoend
53-
run: go build ./...
53+
run: go build $(go list ./... | grep -v '/core_types/duckdb/')
5454
working-directory: internal/endtoend/testdata
55+
env:
56+
CGO_ENABLED: "0"
5557

5658
- name: install databases
5759
run: go run ./cmd/sqlc-test-setup install postgresql mysql

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test-examples:
2121
cd ./examples && go test --tags=examples ./...
2222

2323
build-endtoend:
24-
cd ./internal/endtoend/testdata && go build ./...
24+
cd ./internal/endtoend/testdata && CGO_ENABLED=0 go build $$(go list ./... | grep -v '/core_types/duckdb/')
2525

2626
test-ci: test-examples build-endtoend vet
2727

0 commit comments

Comments
 (0)