ensure tests do not use go test cache

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman 2025-11-18 14:16:54 -05:00
parent 6edb1162c8
commit 624668ada7

View File

@ -529,7 +529,7 @@ tasks:
# remove all test observations prior to regenerating
- find ./syft/pkg -type f -name "test-observations.json" -exec rm -f {} \;
# this is required to update test observations; such evidence is used to update the packages.yaml
- "go test ./syft/pkg/..."
- "go test ./syft/pkg/... -count=1"
- "go generate ./internal/capabilities/..."
- "gofmt -s -w ./internal/capabilities"