Closed queiroz closed 10 months ago
rustc --version rustc 1.74.1 (a28077b28 2023-12-04)
Hey @queiroz, thanks for opening the issue. I just tried to reproduce the issue on my machine with a similar rustc version and couldn't, as the following seems to work:
cargo init temp
cd temp
cargo add sns-sdk
cargo build
What command are you running to get this result? The error message seems to indicate a failure in building the solana-config-program dependency, so you might have a dependency conflict here. Would you mind providing your Cargo.toml? (At least the dependencies section) Thanks
hey @ellttBen thanks for getting back to me, I followed the README instructions related to CLI.
The CLI can be installed with:
cargo install --git https://github.com/Bonfida/sns-sdk.git sns
I've just tried building with cargo add and build and it works but cargo install did not
Hey @queiroz, so it turns out that building the CLI is indeed broken. I've done some repairs on a new branch, would you mind trying this command instead:
cargo install --git https://github.com/Bonfida/sns-sdk.git sns --branch sns-sdk-cli-fix
Thanks again for the report
cargo install --git https://github.com/Bonfida/sns-sdk.git sns --branch sns-sdk-cli-fix
Updating git repository `https://github.com/Bonfida/sns-sdk.git`
Installing sns v0.1.0 (https://github.com/Bonfida/sns-sdk.git?branch=sns-sdk-cli-fix#8f672b48)
Updating crates.io index
Updating git repository `https://github.com/Bonfida/name-tokenizer`
error: failed to compile `sns v0.1.0 (https://github.com/Bonfida/sns-sdk.git?branch=sns-sdk-cli-fix#8f672b48)`, intermediate artifacts can be found at `/var/folders/x5/m9_4wd694czg0pvf3fx19h480000gn/T/cargo-installCxb3a8`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Caused by:
failed to select a version for the requirement `name-tokenizer = "^0.1.0"`
candidate versions found which didn't match: 1.0.0
location searched: Git repository https://github.com/Bonfida/name-tokenizer
required by package `sns-sdk v1.3.1 (/Users/rodrigo/.cargo/git/checkouts/sns-sdk-9a587b4560096ade/8f672b4/rust)`
... which satisfies path dependency `sns-sdk` of package `sns v0.1.0 (/Users/rodrigo/.cargo/git/checkouts/sns-sdk-9a587b4560096ade/8f672b4/cli)`
Hey @queiroz, Made some progress so now a simple
cargo install sns-cli
should suffice
Great solved then, thank you!