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

github:yarnpkg/berry/@yarnpkg/cli/4.0.0-rc.41', '@yarnpkg/cli/4.0.0-rc.41' is not a branch/tag name Error: command exited with exit code exit status: 1 #94

Closed
yuuyins opened this issue Mar 29, 2023 · 2 comments · Fixed by NixOS/nix#8129
Labels
bug Something isn't working

Comments

@yuuyins
Copy link

yuuyins commented Mar 29, 2023

https://github.com/yarnpkg/berry/releases/tag/@yarnpkg/cli/4.0.0-rc.41

github:yarnpkg/berry/@yarnpkg/cli/4.0.0-rc.41', '@yarnpkg/cli/4.0.0-rc.41' is not a branch/tag name
Error: command exited with exit code exit status: 1

Reproduce

nix-init
Enter output path (defaults to current directory)
❯ .
Do you want to overwrite ./default.nix? (Y/n)
❯
Enter url
❯ https://github.com/yarnpkg/berry
Enter tag or revision (defaults to @yarnpkg/cli/3.5.0)
❯ @yarnpkg/cli/4.0.0-rc.41
Enter version
❯ 4.0.0-rc.41
Enter pname
❯ yarn-berry
Error: command exited with exit status: 1
stdout:

stderr:
$ nix flake prefetch --experimental-features 'nix-command flakes' --json github:yarnpkg/berry/@yarnpkg/cli/4.0.0-rc.41
error: in URL 'github:yarnpkg/berry/@yarnpkg/cli/4.0.0-rc.41', '@yarnpkg/cli/4.0.0-rc.41' is not a branch/tag name
Error: command exited with exit code exit status: 1
@figsoda figsoda added the bug Something isn't working label Mar 29, 2023
@figsoda
Copy link
Member

figsoda commented Mar 29, 2023

Opened NixOS/nix#8129 to fix this

figsoda added a commit to nix-community/nurl that referenced this issue Apr 15, 2023
@figsoda
Copy link
Member

figsoda commented Apr 15, 2023

NixOS/nixpkgs#226342 switches nurl to use nixVersions.unstable, which has the fix for the issue

@figsoda figsoda closed this as completed Apr 15, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants