feat(pnpm): standardize store path and configuration#569
Merged
Conversation
53d0236 to
db103ea
Compare
Generated-by: aiautocommit
Generated-by: aiautocommit
* Move pnpm home to /opt/pnpm to follow standard Linux filesystem conventions. * Explicitly configure PNPM_STORE_DIR to ensure cache consistency. * Set PNPM environment variables during dependency installation to improve reliability. Generated-by: aiautocommit
Generated-by: aiautocommit
Update snapshots to reflect the migration of the pnpm store and home directory to /opt/pnpm, ensuring consistent paths across build plans and environment variables. Generated-by: aiautocommit
db103ea to
f3f196d
Compare
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.
Motivation
Railpack cached a hardcoded pnpm store path (
/root/.local/share/pnpm/store/v3), but newer pnpm versions write to a different location. BuildKit was caching the wrong directory, so pnpm install cache hits never materialized.Description
PNPM_HOMEandPNPM_STORE_DIRexplicitly during every pnpm install so the store path is known and consistent regardless of pnpm version or install method.PNPM_STORE_DIR(/opt/pnpm/store) instead of the old hardcoded path, so cached layers match where pnpm actually stores packages.Test
pnpm-corepack-runtime-usagewith abetter-sqlite3native dependency and workspace config.