Skip to content

[Bug] Current canary fails when running yarn plugin import interactive-tools #4396

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

Closed
1 task done
coopermaruyama opened this issue Apr 26, 2022 · 2 comments · Fixed by #4401
Closed
1 task done

[Bug] Current canary fails when running yarn plugin import interactive-tools #4396

coopermaruyama opened this issue Apr 26, 2022 · 2 comments · Fixed by #4401
Labels
bug Something isn't working

Comments

@coopermaruyama
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

The current canary version of yarn 4.0.0-rc.2 404's when installing certain packages with commands such as yarn plugin import interactive-tools. Output looks like:

% yarn plugin import interactive-tools
➤ YN0000: Downloading https://github.com/yarnpkg/berry/raw/@yarnpkg/cli/4.0.0-rc.2/packages/plugin-interactive-tools/bin/%40yarnpkg/plugin-interactive-tools.js
➤ YN0035: The remote server failed to provide the requested resource
➤ YN0035:   Response Code: 404 (Not Found)
➤ YN0035:   Request Method: GET
➤ YN0035:   Request URL: https://github.com/yarnpkg/berry/raw/@yarnpkg/cli/4.0.0-rc.2/packages/plugin-interactive-tools/bin/%40yarnpkg/plugin-interactive-tools.js
➤ YN0000: Failed with errors in 0s 623ms

To reproduce

> yarn set version canary
> yarn plugin import interactive-tools

Environment

System:
    OS: macOS 12.3
    CPU: (32) x64 Intel(R) Xeon(R) W-3245 CPU @ 3.20GHz
  Binaries:
    Node: 16.14.2 - /private/var/folders/3y/4_hmvd6x16qgl5zt_lzxlcdw0000gn/T/xfs-b9cf6a07/node
    Yarn: 4.0.0-rc.2 - /private/var/folders/3y/4_hmvd6x16qgl5zt_lzxlcdw0000gn/T/xfs-b9cf6a07/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm

Additional context

No response

@coopermaruyama coopermaruyama added the bug Something isn't working label Apr 26, 2022
@F3n67u
Copy link

F3n67u commented Apr 26, 2022

I can reproduce on my side. the bin dir is missing in packages/plugin-interactive-tools https://github.com/yarnpkg/berry/releases/tag/%40yarnpkg%2Fcli%2F4.0.0-rc.2.

bin dir is also missing in other package dir. I tried to yarn plugin import constraints, it also 404 error.

@merceyz
Copy link
Member

merceyz commented Apr 26, 2022

Yarn v4 (current canary) ships those plugins by default so there is no need to import them.

I can reproduce on my side. the bin dir is missing in packages/plugin-interactive-tools

#4331 was supposed to stop it from getting that far, I'll look into it.

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

Successfully merging a pull request may close this issue.

3 participants