chore: direnv dev shell with C compiler so cgo tests run #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore-dev-shell-direnv"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
pkgs.gcctoshell.nix. The project is pure-Go (modernc.org/sqlite, noimport "C"), but Go defaults toCGO_ENABLED=1and so wants a C compiler on PATH — without one,go test ./internal/web/...and…/catalog/...fail withcgo: C compiler "gcc" not found..envrc(use nix) sodirenv allowloads the dev shell automatically oncd.Testing
Inside the shell (
nix-shell/ direnv):go build ./...andgo test ./...both pass, including the previously-unrunnableinternal/webandinternal/catalog/sqlitepackages.🤖 Generated with Claude Code