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

cli: Build IDL if there is only one program when using the idl build command #3275

Conversation

acheroncrypto
Copy link
Collaborator

Problem

Running the idl build command when there is only one program inside the workspace root results in an error:

$ anchor idl build
Error: Not in a program directory

You need to specify which program's IDL to build if the current directory is not a program directory:

anchor idl build -p <PROGRAM_NAME>

This is unnecessary when there is only one program in the workspace.

Summary of changes

Build IDL if there is only one program inside the workspace when using the idl build command outside of a program directory.

Copy link

vercel bot commented Sep 25, 2024

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto merged commit ef542f5 into coral-xyz:master Sep 25, 2024
0 of 9 checks passed
@acheroncrypto acheroncrypto added the idl related to the IDL, either program or client side label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli feature idl related to the IDL, either program or client side
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant