-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Proto misparses version emitted by corepack #231
Comments
Interesting, this must be new? I don't remember corepack doing this in the past. Or maybe it's just a bug. Should be an easy fix but I'll wait to see what the node.js team has to say. |
Definitely intentional https://github.com/nodejs/corepack/blob/0b7abb9833d332bad97902260d31652482c274a0/README.md#when-authoring-packages but relatively new. The format was introduced on purpose in nodejs/corepack#133 but corepack only started creating these version strings in 0.20 nodejs/corepack#291. I'm of the opinion that it's an abuse of semver, but that this needs to be supported anyway for corepack compatibility. |
Sounds good, easy enough to fix. |
Fix here moonrepo/node-plugin#10 |
Released a new plugin. You can delete the downloaded ~/.proto/plugins and try this again. |
What version?
0.19.3
Which command?
npm
What happened?
corepack
suggests embedding a hash in thepackage.json#packageManager
field https://github.com/nodejs/corepack/blob/2533d128872b9a42318d841718e635b29c761a96/README.md?plain=1#L68-L82 and currently writes this when you docorepack use npm
orcorepack up
.When running the
npm
shim, proto chokes on this format:Note that
npm
ignores the build metadata (anything after+
), per npm/cli#1479Any logs?
No response
Operating system?
Windows
Architecture?
x64
The text was updated successfully, but these errors were encountered: