Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

v0.9.0 is not available for Mac M1 chip #875

Closed
itsAmitGoyani opened this issue Jul 15, 2022 · 7 comments
Closed

v0.9.0 is not available for Mac M1 chip #875

itsAmitGoyani opened this issue Jul 15, 2022 · 7 comments

Comments

@itsAmitGoyani
Copy link
Contributor

itsAmitGoyani commented Jul 15, 2022

Description

sea-orm version 0.9.0 is not available for Mac M1 chip.
Error:
rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file api/rust/Cargo.toml, cargo 1.59.0: Failed to run "cargo" "metadata" "--format-version" "1" "--manifest-path" "/api/rust/Cargo.toml" "--filter-platform" "aarch64-apple-darwin": cargo metadata exited with an error: Blocking waiting for file lock on package cache Updating crates.io index error: failed to select a version for the requirement sea-orm = "^0.9" candidate versions found which didn't match: 0.8.0, 0.7.1, 0.7.0, ... location searched: crates.io index required by package apis v0.1.0 (/api/rust/apis)

Output of cargo check:
Updating crates.io index
error: failed to select a version for the requirement sea-orm = "^0.9"
candidate versions found which didn't match: 0.8.0, 0.7.1, 0.7.0, ...
location searched: crates.io index
required by package apis v0.1.0 (/api/rust/apis)

Additional Information

Please refer to attached screenshots for more information.
Screenshot 2022-07-15 at 11 13 11 AM

@baoyachi
Copy link
Contributor

baoyachi commented Jul 15, 2022

Try update local rust version to latest .

~ rustup update
~ rustc -V
~ rustc 1.62.0 (a8314ef7d 2022-06-27)

Then exec cmd: cargo b

@billy1624
Copy link
Member

Thanks for reporting!! @itsAmitGoyani

@billy1624
Copy link
Member

Please let me know if upgrading Rust version helps or not

Thanks! @baoyachi

@baoyachi
Copy link
Contributor

It's seems cargo bug.

@baoyachi
Copy link
Contributor

@billy1624 This caused by link ref: rust-lang/cargo#10688

@itsAmitGoyani
Copy link
Contributor Author

@baoyachi @billy1624 Thanks a lot. My rustup version was 1.62.0 only. Just problem was my rustc path was set to separately installed location of version 1.59.0. But now I uninstalled it and it worked. Thanks again.

@billy1624
Copy link
Member

Interesting! Thanks all :)

@SeaQL SeaQL locked and limited conversation to collaborators Jul 17, 2022
@tyt2y3 tyt2y3 converted this issue into discussion #880 Jul 17, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants