bitter-tiger-53933
04/26/2022, 5:01 PM./pants lint
it errors with a InvalidFieldException: The 'source' field in target example/folder must have 1 file, but it had 0 files
.
How can I tell pants to ignore this error and continue to lint even if the file doesn’t exist and is not in version control?high-yak-85899
04/26/2022, 5:02 PMgitignore
pants_ignore
entry in our pants.toml
!/path/to/our/binary
bitter-ability-32190
04/26/2022, 5:11 PMbitter-tiger-53933
04/28/2022, 9:20 AMpants package
just before we run pants test
to create the binary.
But i don't want pants to care about this binary when running pants lint
since the binary will not be there. I could run pants package
just before pants lint every time, similar to what i do with pants test, but I really don't want to do that (it seems bad to package something before its linted)bitter-ability-32190
04/28/2022, 10:40 AMbitter-tiger-53933
04/28/2022, 3:36 PMbitter-ability-32190
04/28/2022, 3:38 PM