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

Cannot compile starship #5876

Closed
madonuko opened this issue Mar 24, 2024 · 11 comments
Closed

Cannot compile starship #5876

madonuko opened this issue Mar 24, 2024 · 11 comments
Labels
🐛 bug Something isn't working as expected.

Comments

@madonuko
Copy link

Bug Report

Current Behavior

Cannot build starship 1.18.1: (logs)

+ /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo build -j4 -Z avoid-dev-deps --profile rpm
    Updating crates.io index
error: 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 (/builddir/build/BUILD/starship-1.18.1)`
perhaps a crate was updated and forgotten to be re-vendored?

See Cargo.toml
See gix on crates.io: 0.61.1 was yanked/erased 2 days ago (2024-03-22).

Expected Behavior

It should just compile?

Additional context/Screenshots

https://crates.io/crates/gix/versions

Possible Solution

Fix Cargo.toml and then release again.

Environment

Irrelevant

Relevant Shell Configuration

Irrelevant

Starship Configuration

Irrelevant

@madonuko madonuko added the 🐛 bug Something isn't working as expected. label Mar 24, 2024
@davidkna
Copy link
Member

Please use --locked to build starship.

@madonuko
Copy link
Author

That gives identical errors.

@davidkna
Copy link
Member

The flag doesn't seem to be forwarded to cargo in your linked PR.

@Hashversion
Copy link

Getting this error while compiling latest version of starship on Ubuntu 22.04 LTS.

Screenshot from 2024-03-24 22-10-23

@mandx
Copy link
Contributor

mandx commented Mar 24, 2024

Looks like gix=v0.61.1 was yanked

Byron/gitoxide#1328 (comment)

@Corfucinas
Copy link

Ran into the same issue

@klausi
Copy link

klausi commented Mar 25, 2024

Thanks for reverting the gix version in the master branch! Can you make a new release so that Starship can be compiled again from a released tag?

Alternatively I also take any Ubuntu installation method that is APT or Snap :-D (just want to avoid Linuxbrew because of install size, currently using cargo-update within topgrade).

@madonuko
Copy link
Author

If you can't wait for the release:

I'm closing this issue since the compiler error can be fixed very easily, or just wait for the next release.

P.S. still couldn't figure out how --locked didn't get passed to cargo; I even checked the command line output and it was there

@koutheir
Copy link

just wait for the next release

Any idea when the next release is coming? i.e., is it days or months?

@madonuko
Copy link
Author

probably days, 1.18.0 was 4 days ago.

@koutheir
Copy link

probably days

Great! Thank you! I can wait a few days.

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

7 participants