You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I specify the same path multiple times, it seems to just use the configuration for the first time it was specified. This is undocumented however and I'm not sure if this behavior is consistent and can be relied upon.
This behavior can be useful, for example by specifying one extra field for logs/specific.log and another field for logs/*.log. This would specifcy specific.log two times. This second time just gets igored it seems.
It would be nice to know if this behavior can be relied upon (and if so, I think it should be documented in the specification of the files field), and what the details of this behavior would be.
The text was updated successfully, but these errors were encountered:
I've now documented that the first matching configuration will be used. Also added to code to enforce this in case of a race where file appears middle of a scan.
In future an option to "exclude" files from a scan would perhaps help but as it stands the way the prospector scans would be significant work to make it support "deferring" configuration until it finishes collecting it together. So I don't have any plan to do that.
When I specify the same path multiple times, it seems to just use the configuration for the first time it was specified. This is undocumented however and I'm not sure if this behavior is consistent and can be relied upon.
This behavior can be useful, for example by specifying one extra field for
logs/specific.log
and another field forlogs/*.log
. This would specifcyspecific.log
two times. This second time just gets igored it seems.It would be nice to know if this behavior can be relied upon (and if so, I think it should be documented in the specification of the
files
field), and what the details of this behavior would be.The text was updated successfully, but these errors were encountered: