-
Notifications
You must be signed in to change notification settings - Fork 4
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
Follow-up with vendors to implement devEngines onFail=download
#33
Comments
Indeed; I don't personally think I think that although the DX of auto-installing a package manager is perceived to be better, it's actually much worse for security and education, and it would be far better for users to be instructed how to install the package manager themselves and have them run the command. |
The The whole point of |
I frequently work on projects with totally different versions of each package manager, and corepack makes that seamless because it's managing those for me. If corepack is gone and devEngines is "the thing", and if package managers are not expected to be helpful and at least switch to the correct versions of themselves via this downloading method, how can I continue to work with more than one version of a package manager without "yet another package manager manager"? pnpm v10 is able to do this (via |
I'm in the same boat. I explored The best path would be for corepack to support devEngines, which is requested at nodejs/corepack#567 |
Closing since specification allows npm to error for
|
Is your feature request related to a problem? Please describe.
The devEngines proposal provides the following options for
onFail
At the time of issue creation, only npm has implemented
devEngines
proposal and they're not planning to implementonFail=download
because of security concern, as per npm/cli#8004 (comment)pnpm, if they implement
devEngines
proposal, will likely follow npm's implementation as per pnpm/pnpm#8153 (comment)Other projects, like yarn and corepack, haven't commented on whether they'll adopt devEngines.
It looks like
onFail=download
is not going to be implemented in the JavaScript ecosystem, assuming implementors follow npm.I'm an existing user of corepack, and I love how it smoothly manages my package manager version behind the scenes.
Describe the solution you'd like
Follow-up with vendors (npm) to implement devEngines
onFail=download
in npm/cli#8004This can include addressing the security concern they're worried about.
An alternative is to remove
onFail=download
specification altogetherDescribe alternatives you've considered
Explicitly download the devEngines packageManager version in all environments. This will require adding instructions for local environments, and adding explicit installs in CI setup. It's not as smooth as corepack.
Switch back to corepack, and it's
packageManager
field. RemovedevEngines
specification from package.json till corepack adds support for it.The text was updated successfully, but these errors were encountered: