Skip to content

Remove duplicate MockPNPM from mocks_test.go - #971

Merged
ivanovac merged 1 commit into
masterfrom
fix-duplicate-mockpnpm
Oct 20, 2026
Merged

ivanovac merged 1 commit into
masterfrom
fix-duplicate-mockpnpm

Conversation

@ivanovac

Copy link
Copy Markdown
Contributor

Summary

Fixes a compile error introduced when PR #964 and the libbuildpack update (#966) landed together.

PR #966 ran go generate which regenerated mocks_test.go and automatically included MockPNPM (with both Build and Rebuild) since the PNPM interface already had Rebuild from PR #964. This left a duplicate of the hand-written MockPNPM block from #964, causing:

src/nodejs/supply/mocks_test.go:300:6: MockPNPM redeclared in this block
src/nodejs/supply/mocks_test.go:306:6: MockPNPMMockRecorder redeclared in this block
...

The fix removes the hand-written block; the generated one (which includes Rebuild) is authoritative.

Test plan

  • go test ./src/nodejs/supply/... passes

go generate regenerated mocks_test.go in the libbuildpack update (PR #966),
adding MockPNPM (with Build + Rebuild) automatically. This left a duplicate of
the hand-written MockPNPM block added in PR #964, causing a compile error.
Remove the duplicate; the generated one is authoritative.
@ivanovac
ivanovac merged commit f486ff8 into master Oct 20, 2026
7 checks passed
@ivanovac
ivanovac deleted the fix-duplicate-mockpnpm branch October 20, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants