https://prefect.io logo
Title
j

Jean-Michel Provencher

12/05/2022, 8:22 PM
Hello, the doc mentions that the .prefectignore file supports the git ignore patterns. However when testing I see that this does not support wildcard like "*" exclude everything. Am I the first to face this ?
k

Khuyen Tran

12/05/2022, 8:24 PM
I use
*
in my .prefectignore and it works
j

Jean-Michel Provencher

12/05/2022, 8:25 PM
Have you ever tried * alone with negation statements ? like * !flow.py
# Ignore everything
*

# But not these files...
!.gitignore
!script.pl
!template.latex
# etc...
k

Khuyen Tran

12/05/2022, 8:25 PM
I tried this before, but let me try again
which version of Prefect are you in?
j

Jean-Michel Provencher

12/05/2022, 8:26 PM
2.6.9
k

Khuyen Tran

12/06/2022, 5:37 PM
I just tested with 2.7.0 and a S3 storage block. My current directory looks like this:
.
├── test2.py
├── test3.py
├── test4.py
├── test5.py
and here is my .prefectignore:
# Ignore everything
*

# But not these files...
!test2.py
Only test2 is uploaded to S3 when I ran prefect deployment build, so it looks like it’s working right
j

Jean-Michel Provencher

12/06/2022, 6:40 PM
Humm, I didn't had this outcome. Let me try this again!
👍 1
yup it works finally, thanks!
🎉 1