https://pantsbuild.org/ logo
#general
Title
# general
f

freezing-vegetable-92896

11/17/2021, 9:45 PM
Is there a way to suppress warnings for a specific glob being empty? I have a files target which is globbing some files that may not exist (another repository that our makefile checks out before building that target). It would be nice to not get a warning when building without those files present (which is most of the time)
w

witty-crayon-22786

11/17/2021, 10:04 PM
the reason we don’t really make this easier though, is because the warning represents non-deterministic behavior: your build might behave differently depending on whether those files are present
f

freezing-vegetable-92896

11/17/2021, 11:38 PM
Thanks. That did the trick. I’ve commented that line with warnings about why I am doing it and why it is safe-ish, and will try to get rid of it when we can
👍 1
2 Views