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

[Bug] Adding plugin to .yarnrc.yml causes yarn to use 1.x runtime #981

Closed
1 task
ianschmitz opened this issue Feb 21, 2020 · 4 comments
Closed
1 task
Labels
bug Something isn't working stale Issues that didn't get attention

Comments

@ianschmitz
Copy link

ianschmitz commented Feb 21, 2020

  • I'd be willing to implement a fix

Describe the bug
Adding a plugins section to .yarnrc.yml forces yarn to use legacy version.

To Reproduce

Transforming this config file:

nodeLinker: node-modules
yarnPath: ".yarn/releases/yarn-berry.js"

to this:

nodeLinker: node-modules
plugins:
    - path: ".yarn/plugins/@yarnpkg/plugin-interactive-tools.js"
      spec: "@yarnpkg/plugin-interactive-tools"
yarnPath: ".yarn/releases/yarn-berry.js"

causes yarn -v to report 1.22.0 instead of 2.0.0-rc.29. The plugin was added using the yarn plugin import interactive-tools command

Environment if relevant (please complete the following information):

  • OS: Ubuntu 19.10
  • Node version: 10.17.0
  • Yarn version: 1.22.0 globally installed
@ianschmitz ianschmitz added the bug Something isn't working label Feb 21, 2020
@missing1984
Copy link
Contributor

Encountered the same issue.

Move up yarnPath to the top fixes the problem for me

@ianschmitz
Copy link
Author

Thanks @missing1984, that workaround seemed to work for me as well.

@yarnbot
Copy link
Collaborator

yarnbot commented Jun 9, 2020

Hi! 👋

This issue looks stale, and doesn't feature the reproducible label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).

Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolution faster). It helps us help you! 😃

If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded label.

@yarnbot yarnbot added the stale Issues that didn't get attention label Jun 9, 2020
@paul-soporan
Copy link
Member

Fixed in yarnpkg/yarn#7931.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Issues that didn't get attention
Projects
None yet
Development

No branches or pull requests

4 participants