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: Fix No such file or directory (os error 2) error when using idl build #3312

Conversation

acheroncrypto
Copy link
Collaborator

Problem

Specifying --out path with the idl build command results in No such file or directory (os error 2) error:

$ anchor idl build -o idls/test.json
Error: No such file or directory (os error 2)

Summary of changes

Fix No such file or directory (os error 2) error when using the idl build command by restoring the current directory environment variable after the build process completes.


Note: A CHANGELOG entry is not needed because this bug was recently introduced in #3273 and did not exist in 0.30.1.

Copy link

vercel bot commented Oct 14, 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 added cli fix Bug fix PR labels Oct 14, 2024
@acheroncrypto acheroncrypto merged commit d3a51c5 into coral-xyz:master Oct 14, 2024
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli fix Bug fix PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant