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

Allow wildcards for sources #91

Open
ghost opened this issue May 12, 2022 · 3 comments
Open

Allow wildcards for sources #91

ghost opened this issue May 12, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented May 12, 2022

I imagine I'm not the only person who would be adding all files in a directory. Having to manually specify the path for each one seems unnecessary, when it could be done with something like:

sources:
 - src/*.vhd
 - src/**/*.sv
@micprog
Copy link
Member

micprog commented May 12, 2022

I don't think wildcard references are always the best approach, as in some cases wrong files may be included. However, feel free to propose a change in a pull request.

@ghost
Copy link
Author

ghost commented May 12, 2022

It's certainly not always the best approach, but I think there's some clear use cases. I've never used rust, but I might have a go at implementing it eventually.

@andreaskurth
Copy link
Contributor

One problem with wildcards is that file order is implicit (usually alphanumerical). Some EDA tools need an ordered list of files in which any file can only use modules and packages from other files earlier in the list. So wildcards will not work for all EDA tools and repositories.

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

No branches or pull requests

2 participants