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
CI log
=== vet === go vet ./... === fmt === === test === go test ./... ? amadan.net/oficina/calendar/cmd/calendar [no test files] ok amadan.net/oficina/calendar/internal/calendar 4.475s ? amadan.net/oficina/calendar/internal/calendar/icons [no test files] ? amadan.net/oficina/calendar/internal/calendar/seal [no test files] ok amadan.net/oficina/calendar/internal/calendartest (cached) ok amadan.net/oficina/calendar/internal/guardstest 0.036s ? amadan.net/oficina/calendar/scripts/writetheme [no test files] === migration-check === go run github.com/carlosframework/rastrillo/cmd/rastrillo migration check rastrillo migration check: models and migrations agree
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=") { |