Open tbruyelle opened 9 months ago
In #1299 I added package gnoutil in an effort to try to centralise the ways we do pkg and file matching.
I'd like to add this as part of that effort -- I'll need to change some things in the PR next week anyway.
@thehowl Sounds like a good plan!
@thehowl Since #1299 was closed without merging, what is the status of this issue ? Is there any pending work to make gnoFilesFromArgs()
less greedy ?
Under the hood, the
gno transpile
command uses thegnoFilesFromArgs()
function, to collect all the gno files found in the path argument that should be processed. The problem is that this function is too greedy, it also returns gno files from the.git
directory and these files are not true gno files (they don't contain gno code).For example, when run inside this repository, the command returns errors like :
I think
gnoFilesFromArgs()
should filter out any hidden folders or files