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]: Yarn Version Broken on CI servers #6246

Open
1 task
aaronclong opened this issue Apr 23, 2024 · 0 comments
Open
1 task

[Bug]: Yarn Version Broken on CI servers #6246

aaronclong opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aaronclong
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

yarn version ${{version}} fails on CI setups like Github actions. It is not possible to use yarn v4 to set a package's version through automation. It fails because of the version check, which it is not possible to disable.

The error message is the following:

Usage Error: No ancestor could be found between any of HEAD and master, origin/master, upstream/master, main, origin/main, upstream/main

This appears to be a consistent issue on the web, and using yarn for libraries currently is nonviable as a result.

To reproduce

This is a cli issue

Environment

System:
    OS: macOS 14.3.1
    CPU: (12) arm64 Apple M2 Pro
  Binaries:
    Node: 18.20.2 - /private/var/folders/r3/j7x8f93d78sd7m44f_2xbtkw0000gp/T/xfs-9169d8a6/node
    Yarn: 4.1.1 - /private/var/folders/r3/j7x8f93d78sd7m44f_2xbtkw0000gp/T/xfs-9169d8a6/yarn
    npm: 10.5.0 - ~/.volta/tools/image/node/18.20.2/bin/npm
    pnpm: 8.15.6 - ~/.volta/tools/image/pnpm/8.15.6/bin/pnpm

Additional context

#4014

@aaronclong aaronclong added the bug Something isn't working label Apr 23, 2024
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

No branches or pull requests

1 participant