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

Anchor.toml is unable to parse * while mentioning workspace members #2658

Closed
dhruvja opened this issue Oct 11, 2023 · 2 comments
Closed

Anchor.toml is unable to parse * while mentioning workspace members #2658

dhruvja opened this issue Oct 11, 2023 · 2 comments
Labels
cli enhancement New feature or request

Comments

@dhruvja
Copy link

dhruvja commented Oct 11, 2023

I was trying to add workspace members to anchor.toml file since the smart contracts were in a different directory than the default programs directory. And i observed that when i mentioned the folder path in the workspace members with a *, the anchor.toml similar to what we have in cargo.toml, it was not able to understand it.

For eg:

[workspace]
members = [
  "solana/my-programs/*"
]

The above didnt work.
But it works fine when the exact directory is mentioned like below.

[workspace]
members = [
  "solana/my-programs/example-program"
]

Is there a particular reason why we dont allow all the * to include all the directories in a particular folder ?

If there isnt, I am happy to open a PR for the above fix.

@acheroncrypto
Copy link
Collaborator

Is there a particular reason why we dont allow all the * to include all the directories in a particular folder ?

Nothing particular other than globs not being supported by default.

If there isnt, I am happy to open a PR for the above fix

Sounds great!

@acheroncrypto
Copy link
Collaborator

Added in #2785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants