Repository navigation
fix(build): run the pinned pnpm with npx when pnpm isn't installed - #175
Merged
Merged
Conversation
GoReleaser's release job runs make web with only the runner's Node and npm, so the v0.16.0 release failed with "pnpm not found" and has no binaries. make web and web-dev now use the pnpm on PATH, else the release web/package.json pins run with npx. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
The v0.16.0 release has no binaries. GoReleaser failed in its
beforehookmake webwith "pnpm not found" (run 46497469235).Dockerfileand both CI workflows..goreleaser.yaml, whose release job runsmake webwith only the runner's own Node and npm: no pnpm.Fix
make webandmake web-devuse thepnpmon PATH when there is one. It switches itself to the releaseweb/package.jsonpins.npx --yes. Somake webworks anywhere Node.js and npm are installed: GoReleaser's release job, CI, or a fresh machine. Nobody needs to install pnpm first.pnpm-checktarget, which stopped with an install hint, is gone.Tested
node,npm,npx,makeand basic tools (no pnpm, as in the release job), and the UI build output removed first,make webrunsnpx --yes pnpm@12.23.0 install --frozen-lockfile && … run buildand buildsinternal/admin/ui.make -n webstill runspnpmdirectly.After merging
This is a
fix:, so Release Please opens 0.16.1, and that release gets its binaries. v0.16.0 can't be repaired in place: its tag points at the commit with the old Makefile, so re-running GoReleaser on it would fail the same way. Its Docker image is built separately and isn't affected.🤖 Generated with Claude Code