-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Shakapacker 8: usage of corepack, an experimental extension, for a stable release #478
Comments
This is independent of corepack though and we're not forcing the opt-in to that. Although those warnings might get annoying. Cc @G-Rath |
yarnpkg/yarn#9015 actually I do wonder if Yarn is not making this difficult as they seem to not like the presence of the field in package.json but without corepack 😬 @tagliala Is it the warning you are getting or an error that kills some process? |
my I also can't actually find any part of that warning in Yarn Berry's code, which is weird... |
In fact, I'm pretty sure this warning shouldn't be a problem because if you do
|
Yeah I've played around with this in a few different ways without being able to trigger this warning - Yarn v1, v3, and v4, with Not saying it's impossible, but I think it's either very dependent on versions or I've forgotten about some config or env variable that's very undocumented (but at least then it would mean it can be disabled 😅) |
Sorry, I'm using classic yarn (as I always did since webpacker was released)
I'm not able to replicate this at the moment, but I think that "corepack disable" broke something, since |
Yeah because of what |
Thanks. I've tried but the warning does not appear anymore. I've also noticed that now it installs 1.22.22 but I've reinstalled |
Cool, that matches with the results I've gotten after trying a bunch of different combos and versions 😅 fwiw, I think I've found it: this is a message in Yarn classic which was introduced in v1.22.20, after which it was then updated to check for The current latest version of the code is https://github.com/yarnpkg/yarn/blob/740c38c3a962c30ddb344a919bbfb7065620714b/src/cli/index.js#L292-L321 I've still not actually been able to trigger it myself but that doesn't surprise me as while digging into this I realised it shouldn't make sense for this to show frequently because the point of the The code itself looks like it should only fire if you have |
derp ok I've reproduced this, and it is an process-stopping error (which is indicated by the code anyway), but I think it's actually user error - it happens if you set The full message is important:
So the actual error here is that you are using the wrong package manager / version - regardless of corepack, that is still a valid error |
Closing based on the above. Full error message makes it relatively clear on what's the issue |
Thanks, yes. I was able to reproduce:
|
On Heroku, with Yarn Berry (4.1.1) I get the following error: remote: ! Yarn release script may conflict with "packageManager"
remote:
remote: The package.json file indicates the target version of Yarn to install with:
remote: - "packageManager": "[email protected]"
remote:
remote: But the .yarnrc.yml configuration indicates a vendored release of Yarn should be used with:
remote: - yarnPath: ".yarn/releases/yarn-4.1.1.cjs"
remote:
remote: This will cause the buildpack to install [email protected] but, when running Yarn commands, the vendored release
remote: at ".yarn/releases/yarn-4.1.1.cjs" will be executed instead.
remote:
remote: To ensure we install the version of Yarn you want, choose only one of the following actions:
remote: - Remove the "packageManager" field from package.json
remote: - Remove the "yarnPath" configuration from .yarnrc.yml and delete the vendored release at ".yarn/releases/yarn-4.1.1.cjs"
remote: https://devcenter.heroku.com/articles/nodejs-support
remote: my setup was done based on this issue: but had to add it using And then when I upgraded to Shakapacker 8 I had to add it to package.json, but now I have a conflict. I can open in a separate issue if you think this is not related, but I am not 100% sure how to handle this configuration anymore. |
@davidwessman that's a bug with the Heroku build pack - it's perfectly valid to have both Is this actually failing your builds though? the [pull request that added this] says
|
The builds are not failing, this seems to be a working setup except for the warnings about duplicate configuration. |
Hi,
I'm trying to upgrade to Shakapacker 8 and I ran into this warning:
When checking information about Corepack, I'm reading:
Is it possible to opt out from corepack?
The text was updated successfully, but these errors were encountered: