YuvaPhani27 opened a new issue, #40672:
URL: https://github.com/apache/airflow/issues/40672
### Description
Extend glob pattern matching support similar to .gitignore in .airflowignore
### Use case/motivation
I recently upgraded Airflow from version 2.6.2 to 2.9.2 and noticed a change
in version 2.6.3 related to .airflowignore handling. My requirement is to
exclude everything except certain folders within the dags_folder path.
Previously, I achieved this using pattern `^(?!(foo|bar)).*` with the default
`dag_ignore_file_syntax = regexp`. However, after the upgrade, this approach
stopped working because Google's RE2 engine doesn't seem to support `(?!)` as
expected. I attempted switching `dag_ignore_file_syntax = glob` and observed
that the current glob support is very limited. Hence requesting this feature to
provide similar functionality as of .gitignore where I can define the pattern
like `!{foo/*,bar/*}`.
### Related issues
NA
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]