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

Starship 1.18.1 fails to build due to yanked gix crate #5884

Closed
therealprof opened this issue Mar 25, 2024 · 6 comments
Closed

Starship 1.18.1 fails to build due to yanked gix crate #5884

therealprof opened this issue Mar 25, 2024 · 6 comments
Labels
🐛 bug Something isn't working as expected.

Comments

@therealprof
Copy link

Bug Report

Current Behavior

Can't build starship due to:

# cargo install starship
    Updating crates.io index
  Installing starship v1.18.1
    Updating crates.io index
error: failed to compile `starship v1.18.1`, intermediate artifacts can be found at `/var/folders/8f/ch8vbtq93ldfc4vksdp5cw540000gn/T/cargo-install01oG7N`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  failed to select a version for the requirement `gix = "^0.61.1"`
  candidate versions found which didn't match: 0.61.0, 0.60.0, 0.58.0, ...
  location searched: crates.io index
  required by package `starship v1.18.1`
  perhaps a crate was updated and forgotten to be re-vendored?

Expected Behavior

Can be built.

Additional context/Screenshots

It happens to build with the specified gix version if I force it to use Cargo.lock, however it also complains:

warning: package `gix v0.61.1` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked

Possible Solution

Use a later gix version.

@therealprof therealprof added the 🐛 bug Something isn't working as expected. label Mar 25, 2024
@therealprof
Copy link
Author

Okay, there is no later gix version. The fix would be to fall back to 0.61.0 then.

@JiveyGuy
Copy link

Having this issue too, glad someone already opened an issue.

@chrom
Copy link

chrom commented Mar 26, 2024

The same.

Updating starship
    Updating crates.io index
  Installing starship v1.18.1
    Updating crates.io index
error: failed to compile `starship v1.18.1`, intermediate artifacts can be found at `/tmp/cargo-installUfVPa9`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  failed to select a version for the requirement `gix = "^0.61.1"`
  candidate versions found which didn't match: 0.61.0, 0.60.0, 0.58.0, ...
  location searched: crates.io index
  required by package `starship v1.18.1`
  perhaps a crate was updated and forgotten to be re-vendored?

@sibarras
Copy link

Same. Also 1.18.0 is not available on crates.io

@Zooce
Copy link

Zooce commented Mar 28, 2024

#5878 + #5882

@davidkna
Copy link
Member

Closed via #5882

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

No branches or pull requests

6 participants