From 5f0445e7496d045cf785208a4c061d54b41a2795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 3 Feb 2026 19:00:40 +0100 Subject: [PATCH] docs: add nix develop note to CLAUDE.md Go commands should be run via nix develop -c to ensure the proper build environment with all dependencies (like gcc for cgo). Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index b17a289..6639a57 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -183,3 +183,5 @@ labmcp/ - Use `database/sql` interface for database abstraction - File paths in responses should use format `path/to/file.go:123` - **Always run `go fmt ./...` before committing Go code** +- **Run Go commands using `nix develop -c`** (e.g., `nix develop -c go test ./...`) to ensure proper build environment with all dependencies +- **Use `nix run` to run binaries** instead of `go build` followed by running the binary (e.g., `nix run .#nixos-options -- serve`)