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

Allow anchor build/deploy to be given a keypair for the programid. #1394

Closed
akutruff opened this issue Feb 4, 2022 · 1 comment · Fixed by #1786
Closed

Allow anchor build/deploy to be given a keypair for the programid. #1394

akutruff opened this issue Feb 4, 2022 · 1 comment · Fixed by #1786

Comments

@akutruff
Copy link

akutruff commented Feb 4, 2022

Right now anchor build and anchor deploy generate a keypair in the target directory. This prevents being able to generate consistent program id's across different environments.

Suggest adding something like:
anchor build --program-keypair <keypair.json> and anchor deploy --program-keypair <keypair.json>
Which will use the provided keypair and not generate a file in the target directory.

@callensm
Copy link
Member

callensm commented Mar 2, 2022

This new argument would need to be only allowed if --program-name is specified, otherwise anchor build and anchor deploy act on all workspace programs.

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

Successfully merging a pull request may close this issue.

2 participants