Credits test: list dependencies without VCS stamping
The inventory needs module paths, versions and directories, never VCS state; with stamping on, go list failed on a CI runner whose checkout could not answer git status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−1
internal/calendar/credits_inventory_test.go+1 −1
CI passed — run details
diff --git a/internal/calendar/credits_inventory_test.go b/internal/calendar/credits_inventory_test.go| index da184f7..851c02b 100644 |
| --- a/internal/calendar/credits_inventory_test.go |
| +++ b/internal/calendar/credits_inventory_test.go |
| @@ -22,7 +22,7 @@ import ( |
| func TestCreditsMatchProductionDependencies(t *testing.T) { |
| ctx, cancel := context.WithTimeout(t.Context(), 45*time.Second) |
| defer cancel() |
| - command := exec.CommandContext(ctx, "go", "list", "-deps", "-json", "./cmd/calendar") |
| + command := exec.CommandContext(ctx, "go", "list", "-buildvcs=false", "-deps", "-json", "./cmd/calendar") |
| command.Dir = filepath.Join("..", "..") |
| for _, entry := range os.Environ() { |
| if !strings.HasPrefix(entry, "GOOS=") && !strings.HasPrefix(entry, "GOARCH=") && !strings.HasPrefix(entry, "CGO_ENABLED=") && !strings.HasPrefix(entry, "GOWORK=") { |