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

Failed to run cargo install perseus-cli without the --locked flag #269

Closed
saona-raimundo opened this issue Apr 8, 2023 · 4 comments · Fixed by #274
Closed

Failed to run cargo install perseus-cli without the --locked flag #269

saona-raimundo opened this issue Apr 8, 2023 · 4 comments · Fixed by #274
Labels
A-website Area: website (not including documentation) C-bug Category: bug tribble-reported This issue was reported through Tribble.

Comments

@saona-raimundo
Copy link
Contributor

This issue is reporting a bug in the website.

When I run cargo install perseus-cli, I get the following error.

cargo install perseus-cli
    Updating crates.io index
  Installing perseus-cli v0.3.6
error: failed to compile `perseus-cli v0.3.6`, intermediate artifacts can be found at `C:\Users\rasau\AppData\Local\Temp\cargo-installesoazn`

Caused by:
  failed to select a version for the requirement `cargo_toml = "^0.9"`
  candidate versions found which didn't match: 0.15.2, 0.15.1, 0.15.0, ...
  location searched: crates.io index
  required by package `perseus-cli v0.3.6`

For me, the fix was to run cargo install perseus-cli --locked.
I wanted to propose to add the --locked flag to the tutorial.

Tribble internal data

dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLXdlYnNpdGU=

@github-actions github-actions bot added A-website Area: website (not including documentation) C-bug Category: bug tribble-reported This issue was reported through Tribble. labels Apr 8, 2023
@saona-raimundo
Copy link
Contributor Author

Note: This has nothing to do with requiring perl to build openssl-sys on Windows.

@arctic-hen7
Copy link
Member

Yeah, this relates to a previous upstream issue in cargo_toml that makes downloading v0.3 of the Perseus CLI difficult. I would recommend moving to v0.4, which will be released in stable today, but a PR to add this flag to the old docs is welcome!

@saona-raimundo
Copy link
Contributor Author

I confirm that moving to v0.4 works :) Thanks!

I wonder, if it happened before, why should it not happen again in v0.4 with some other upstream crate?
Is there a disadvantage to adding the --locked flag? (other than being a longer script)

@arctic-hen7
Copy link
Member

The bug was caused by one particular crate that had almost every existing version yanked, which is extremely irregular, whereas Perseus itself generally allows its dependencies to update their minor versions, so I don't think adding --locked outside of v0.3 is worth it. I strongly doubt anything like this would happen again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-website Area: website (not including documentation) C-bug Category: bug tribble-reported This issue was reported through Tribble.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants