-
Notifications
You must be signed in to change notification settings - Fork 139
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
Asdf - yarn via corepack compatibility #342
Comments
I still need to understand how corepack works behind the scenes, but we are probably willing to offer a better integration. Contributions are also welcome |
I'm using pnpm though but otherwise I'm seeing the same thing. Since corepack just dumps the shims in the same dir as Like for a different repo, if I have |
I believe you that asdf-yarn/asdf-pnpm would need to be specified before node in .tool-versions in order for the corepack shims from asdf-nodejs to not be used |
we did exactly that for |
Does this help? It will let you install Yarn in the project or lock the version |
Thanks to this: The solution I took was: corepack enable
asdf reshim nodejs So now, I use |
Unfortunately some repos in my organisation will likely continue using yarn/pnpm plugins, so I don't think that will work for us. |
@dtinth I think you meant to write |
@mnahkies thank you for the correction, edited. |
I don't 100% know if this is best practice, but currently I'm using This is working really well, so thanks! Just naively it seems nice to ideally avoid re-running I get there is probably not a good indicator for when this should happen; maybe a new config flag/env variable, or looking for a |
Thanks so much, this is what I needed to do. |
Sorry for being blunt but I am not very well-versed in what is going on with I've been using ASDF just for
Then this I've been using renovate to keep After I enabled corepack
it keep using whatever version from After some digging, I learned that I can set the version in my question is what other do I need to make to ensure the Thank you! |
@1oglop1 With Corepack, when you run
To summarize
|
I'm wondering with upcoming corepack feature stabilization are there any ways to integrate it with asdf?
Right now, it seem when we do
corepack enable
in one repo it enables it for all the repos which share the same version of node.We have decided to opt out of corepack for now to avoid upgrading yarn across repos.
What I envision integration would allow is to separate yarn version for each repo like we do with asdf now but able to enable corepact without affecting other repos.
The text was updated successfully, but these errors were encountered: