Skip to content

fix(cli): support relative paths for IDL commands#4314

Open
Omironside754 wants to merge 1 commit intosolana-foundation:masterfrom
Omironside754:fix/idl-relative-paths-2993
Open

fix(cli): support relative paths for IDL commands#4314
Omironside754 wants to merge 1 commit intosolana-foundation:masterfrom
Omironside754:fix/idl-relative-paths-2993

Conversation

@Omironside754
Copy link
Copy Markdown

Convert relative file paths to absolute paths using fs::canonicalize() before reading IDL files. This fixes the 'No such file or directory' error when running IDL commands from directories other than the project root.

Affected functions:

  • idl_init
  • idl_upgrade
  • idl_convert
  • idl_type

Fixes #2993

Convert relative file paths to absolute paths using fs::canonicalize()
before reading IDL files. This fixes the 'No such file or directory'
error when running IDL commands from directories other than the project root.

Affected functions:
- idl_init
- idl_upgrade
- idl_convert
- idl_type

Fixes solana-foundation#2993
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

@Omironside754 is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

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 this pull request may close these issues.

feature request: support relative paths for anchor idl init

1 participant