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

happy-kitchen-89482

11/15/2021, 3:06 PM
How do we tell the file watcher to ignore certain files? My current case is, while addressing https://github.com/pantsbuild/example-django/issues/12 by putting the .sqlite3 files in the cwd (so the repo root), as the migration runs it modifies those files, which causes it to rerun... *.sqlite3 is already gitignored and therefore pants-ignored, but that appears to not be sufficient.
e

enough-analyst-54434

11/15/2021, 3:15 PM
Is this observed using Pants HEAD (Stu's recent fix / optimization of file watching code)?
Ah, no. Just HEAD. Still baking.
h

happy-kitchen-89482

11/15/2021, 4:45 PM
Yes, this is from current HEAD, including that commit
Oh, it's due to a tmpfile with the
.sqlite3-journal
suffix
👀 1
Adding
*.sqlite3-journal
to .gitignore sorts this out
w

witty-crayon-22786

11/15/2021, 5:09 PM
the file watcher ignores whatever is ignored by
.gitignore
or
pants_ignore
3 Views