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

Cargo Build Process Requires "near-o11y" #286

Open
bearInTheRoad opened this issue Jul 7, 2022 · 3 comments
Open

Cargo Build Process Requires "near-o11y" #286

bearInTheRoad opened this issue Jul 7, 2022 · 3 comments
Assignees

Comments

@bearInTheRoad
Copy link

bearInTheRoad commented Jul 7, 2022

Pretty much followed the whole readme file. But encountered an unexpected issue during executing "cargo build --release".

The error message is error: no matching package named "near-o11y" found location searched: [https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2](https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2)([https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2](https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2)) required by package "near-client v0.0.0 ([https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2](https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2)([https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2](https://github.com/near/nearcore?rev=ac2a43e26065a354c1b0f896d4259967e4757d38#ac2a43e2)))" ... which satisfies git dependency "near-client" (locked to 0.0.0) of package "indexer-explorer v0.10.19 (/home/dylan/Documents/near_curated/near-indexer-for-explorer)"

I couldn't find anything related to "near-o11y". How can I fix the error?

System: Ubuntu

@khorolets
Copy link
Member

Last time someone has the exact same issue the problem was with an older rustup on their machine.

Please do rustup update and try to build again. Let us know if that helps, thank you!

@bearInTheRoad
Copy link
Author

HI Khorolets, thanks for the advice.
I tried rustup update but seems like it is telling me that there is nothing to update about?

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: checking for self-updates
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.62.0 (a8314ef7d 2022-06-27)
info: cleaning up downloads & tmp directories

However when I checked the rustc version with rustc -V, it shows I am in rustc 1.59.0

Now I am confused than before and my build still fails with the same error above.

Last time someone has the exact same issue the problem was with an older rustup on their machine.

Please do rustup update and try to build again. Let us know if that helps, thank you!

@frol
Copy link
Contributor

frol commented Jul 11, 2022

@bearInTheRoad Try cargo +stable build --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

3 participants