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

Rust cargo arguments not supported? #121

Open
yurushao opened this issue Jan 5, 2025 · 5 comments
Open

Rust cargo arguments not supported? #121

yurushao opened this issue Jan 5, 2025 · 5 comments

Comments

@yurushao
Copy link

yurushao commented Jan 5, 2025

Our mainnet program is built with cargo args:

 anchor build -- --features mainnet --tools-version v1.43

Tried to pass the args to solana-verify but it didn't work

$ solana-verify build -- --features mainnet
...
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
error: none of the selected packages contains these features: mainnet
Finished building program
Program Solana version: v1.18.23
Docker image Solana version: v1.18.23

Any advice on how to make it work? Thanks!

@ngundotra
Copy link
Collaborator

Hi! Do you mind sharing which version of solana-verify you are using?

@yurushao
Copy link
Author

yurushao commented Jan 6, 2025

Hi @ngundotra

$ solana-verify -V
solana-verify 0.4.0

@ngundotra
Copy link
Collaborator

@yurushao Can you provide a link to a github repo that you are trying to build? There is not enough information here for us to help debug

cc @Woody4618 for ideas on blind debugging here, just in case I'm missing something

@yurushao
Copy link
Author

yurushao commented Jan 6, 2025

Thank you. Appreciate your quick responses!

Our program code is here https://github.com/glamsystems/glam/tree/main/anchor

We build our mainnet program with this command:

anchor build -- --features mainnet --tools-version v1.43

@Woody4618
Copy link
Contributor

Looks like you are not putting the library name:
Can you please try:
solana-verify build --library-name glam -- --features mainnet

That works for me locally.

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