bender icon indicating copy to clipboard operation
bender copied to clipboard

Allow wildcards for sources

Open ghost opened this issue 3 years ago • 3 comments

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

ghost avatar May 12 '22 04:05 ghost

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.

micprog avatar May 12 '22 16:05 micprog

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.

ghost avatar May 12 '22 23:05 ghost

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.

andreaskurth avatar Aug 03 '22 06:08 andreaskurth