Skip to content

feat(cli): Allow configuring IDL JSON location in workspace config#4483

Merged
jamie-osec merged 7 commits into
otter-sec:masterfrom
jamie-osec:idl-json-config
May 27, 2026
Merged

feat(cli): Allow configuring IDL JSON location in workspace config#4483
jamie-osec merged 7 commits into
otter-sec:masterfrom
jamie-osec:idl-json-config

Conversation

@jamie-osec

Copy link
Copy Markdown
Collaborator

Closes #3533 by clarifying the docs and allowing configuring the location of the IDL JSON as well as types.

@vercel

vercel Bot commented Apr 28, 2026

Copy link
Copy Markdown

@jamie-osec is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread cli/src/lib.rs Outdated
Comment thread docs/content/docs/references/anchor-toml.mdx Outdated

@acheroncrypto acheroncrypto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a reasonable feature to add. The comments are only for small issues.

Comment thread cli/src/config.rs Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will be deployed immediately after the merge, which could cause issues when people try to use this feature before the next version is out. This has been a common problem. I see someone already working on v2 docs (#4460), so thoughts on versioning the docs going forward?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, we should probably figure this out before touching the docs too much

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That PR seems to update how the TS package docs work, but the issue was about the main docs site. I believe TS package docs never automatically updated on every merge anyway.

Comment thread tests/idl/Anchor.toml Outdated
Comment thread tests/idl/.gitignore

@acheroncrypto acheroncrypto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great, but as noted previously in #4483 (comment) we should version the docs. Probably something like:

https://www.anchor-lang.com/docs/<TAG_OR_BRANCH>/...

It should default to the latest stable version if there is no tag or branch parameter.

Do you want to revert the docs changes until then? In any case, it probably wouldn't hurt to merge this if you intend to make a new release shortly after.

@jamie-osec

Copy link
Copy Markdown
Collaborator Author

The move to the new organisation has broken automated deployment, and either way we should be releasing soon, so no issue merging I think.

@jamie-osec jamie-osec merged commit 4a08026 into otter-sec:master May 27, 2026
100 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to control the location of IDL and types.

3 participants