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 update libradicl #78

Closed
smoretti opened this issue Jul 22, 2022 · 3 comments
Closed

Cannot update libradicl #78

smoretti opened this issue Jul 22, 2022 · 3 comments

Comments

@smoretti
Copy link

I try to install alevin-fry version 0.6.0 with Rust 1.52.1 but the installation fails:

$ cargo install --path .
  Installing alevin-fry v0.6.0 (/var/vhosts/vitsoft-home/sib-easyconfigs.git/easybuild/easyconfigs/a/alevin-fry/alevin-fry-0.6.0)
    Updating crates.io index
    Updating git repository `https://github.com/COMBINE-lab/libradicl`
error: failed to compile `alevin-fry v0.6.0 (/var/vhosts/vitsoft-home/sib-easyconfigs.git/easybuild/easyconfigs/a/alevin-fry/alevin-fry-0.6.0)`, intermediate artifacts can be found at `/var/vhosts/vitsoft-home/sib-easyconfigs.git/easybuild/easyconfigs/a/alevin-fry/alevin-fry-0.6.0/target`

Caused by:
  failed to get `libradicl` as a dependency of package `alevin-fry v0.6.0 (/var/vhosts/vitsoft-home/sib-easyconfigs.git/easybuild/easyconfigs/a/alevin-fry/alevin-fry-0.6.0)`

Caused by:
  failed to load source for dependency `libradicl`

Caused by:
  Unable to update https://github.com/COMBINE-lab/libradicl

Caused by:
  failed to find branch `master`

Caused by:
  cannot locate remote-tracking branch 'origin/master'; class=Reference (4); code=NotFound (-3)

I think it comes from the master branch of libradicl that have been renamed main.

@rob-p
Copy link
Contributor

rob-p commented Jul 22, 2022

Indeed; I think this is also due to an older version of rust being used (I should do an audit to determine what the MSRV is for a clean build). It seems that this bug in cargo (assuming "master" for the main branch name) was fixed in 1.55. I'm happy to support older Rust versions if there are no fundamentally newer features being used, but development and CI are usually done on the latest stable rust, which is why these issues didn't show up there.

On rust < 1.55, perhaps the fix is to either pull 0.4.6 directly (it's on crates.io) or to update

https://github.com/COMBINE-lab/alevin-fry/blob/master/Cargo.toml#L41

to

libradicl = { git = "https://github.com/COMBINE-lab/libradicl",  branch = "main", version = "0.4.6" }

Thanks!
Rob

@rob-p rob-p closed this as completed Jul 22, 2022
@smoretti
Copy link
Author

Your fix libradicl = { git = "https://github.com/COMBINE-lab/libradicl", branch = "main", version = "0.4.6" } works but then libradicl requires also cargo-features = ["edition2021"] #77

So I now use Rust 1.60.0 and the installation works well

@rob-p
Copy link
Contributor

rob-p commented Jul 27, 2022

Thanks for the update! I'll be sure to add these constraints when we refresh the documentation on the next (patch) release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants