Commit e8a0476
fix: adapt walker_test to NewTargetHashCache 5-arg signature (#4)
## Summary
Main is broken: `//pkg:pkg_test` fails to compile because
`pkg/walker_test.go` still calls the 4-arg `NewTargetHashCache`, while
the [`--rule-class-fingerprint`
feature](#2) added a
5th parameter (\`ruleClassFingerprints []RuleClassFingerprintDigests\`).
Failing CI:
https://github.com/spotify/target-determinator/actions/runs/24855629042/job/72767594737
\`\`\`
pkg/walker_test.go:33:63: not enough arguments in call to
NewTargetHashCache
have (nil, *Normalizer, string, bool)
want (map[label.Label]map[Configuration]*analysis.ConfiguredTarget,
*Normalizer, string, bool, []RuleClassFingerprintDigests)
\`\`\`
\`walker_test.go\` is a fork-local test file that I missed when updating
call sites during #2. Pass \`nil\` for the new parameter — the test
doesn't exercise fingerprints.
## Test plan
- [x] \`bazel test //pkg:pkg_test\` passes locally.
- [x] CI presubmit green.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6faaa03 commit e8a0476
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments