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

Unable to find an executable binary for yarn, expected file ~/.proto/tools/yarn/1.22.20/bin/yarn.js #286

Closed
bryanjswift opened this issue Nov 14, 2023 · 6 comments · Fixed by moonrepo/node-plugin#20
Assignees
Labels
bug Something isn't working

Comments

@bryanjswift
Copy link

What version?

The version bundled with moon 1.11.1

Which command?

No response

What happened?

It appears that the structure of the archive downloaded for yarn v1 changed in the just released yarn 1.22.20 such that there is a package folder in the ~/.proto/tools/yarn/1.22.20 directory this causes proto to be unable to find the specific tool path ~/.proto/tools/yarn/1.22.20/bin/yarn.js (because it exists at ~/.proto/tools/yarn/1.22.20/package/bin/yarn.js). This is specifically a problem with the node_depman plugin but I can't find the source or a repository to report the issue there.

There also doesn't appear to be a way to tell proto to use a different version of yarn v1 when the toolchain specifies yarn 2+

I don't expect this to be limited to a specific version of proto because it has to do with how to tool version is unpacked.

Any logs?

No response

Operating system?

MacOS

Architecture?

Arm64

@bryanjswift bryanjswift added the bug Something isn't working label Nov 14, 2023
@bryanjswift
Copy link
Author

Presumably this bug belongs in https://github.com/moonrepo/node-plugin

@milesj
Copy link
Contributor

milesj commented Nov 14, 2023

Annoying, fix here: moonrepo/node-plugin#20

@Robinnnnn
Copy link

appreciate this report and the quick fix @milesj, our CI started failing as well: https://github.com/gallery-so/gallery/actions/runs/6869327266/job/18681866538?pr=2083

should we expect this to be autofixed once the update is released?

@milesj
Copy link
Contributor

milesj commented Nov 14, 2023

It should for older versions of moon/proto. Latest versions use fixed versions now.

@Robinnnnn
Copy link

@milesj still seeing issues despite upgrading moon + proto, moving convo to discord: https://discord.com/channels/974160221452763146/1174101530748669952/1174101530748669952

@milesj
Copy link
Contributor

milesj commented Nov 14, 2023

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

Successfully merging a pull request may close this issue.

3 participants