Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make corepack binaries available during runtime #1250

Merged
merged 1 commit into from
May 2, 2024

Conversation

colincasey
Copy link
Contributor

While setting up a pnpm walkthrough I noticed that, at runtime, the pnpm binary wasn't available. This PR ensures that any package manager downloaded using Corepack is available at runtime by:

  • setting COREPACK_HOME to <build_dir>/.heroku/corepack so that downloads are placed with the app during the build phase (similar to Node and other binaries)
  • setting COREPACK_HOME to $HOME/.heroku/corepack in the nodejs.sh script that executes at runtime so that Corepack is aware of the download directory when using its jumper scripts

Also, Hatchet tests have been added to verify this behavior.

@colincasey colincasey self-assigned this May 1, 2024
@colincasey colincasey force-pushed the fix_corepack_binaries_at_runtime branch 2 times, most recently from 7ca34dc to 65778f2 Compare May 1, 2024 21:40
@colincasey colincasey force-pushed the fix_corepack_binaries_at_runtime branch from 65778f2 to 4846020 Compare May 1, 2024 21:46
@colincasey colincasey marked this pull request as ready for review May 1, 2024 22:02
@colincasey colincasey requested review from joshwlewis and a team as code owners May 1, 2024 22:02
@colincasey colincasey changed the title Make corepack downloads available during runtime Make corepack binaries available during runtime May 1, 2024
@colincasey colincasey merged commit 35cf1ea into main May 2, 2024
11 checks passed
@colincasey colincasey deleted the fix_corepack_binaries_at_runtime branch May 2, 2024 14:00
@heroku-linguist heroku-linguist bot mentioned this pull request May 2, 2024
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