devgonvarun opened a new issue, #62716: URL: https://github.com/apache/airflow/issues/62716
### Apache Airflow version 3.1.7 ### If "Other Airflow 3 version" selected, which one? _No response_ ### What happened? airflow ignore with negation incorrectly includes ignored dags from top folders. ### What you think should happen instead? _No response_ ### How to reproduce Consider an airflowignore like the following ``` * !abc/ !abc/def/ !abc/def/xyz/ !abc/def/xyz/* ``` this should have the following behaviour: 1. Ignore everything in the present path. 2. Unignore abc/ path but not its contents. 3. Unignore abc/def/ path but not its contents. 4. Unignore abc/def/xyz/ path but not its contents. 5. Unignore the contents of abc/def/xyz/ path. However, the above airflowignore also unignores the direct contents of abc/ and the abc/def folders incorrectly. ### Operating System Debian GNU/Linux 12 (bookworm) ### Versions of Apache Airflow Providers _No response_ ### Deployment Official Apache Airflow Helm Chart ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit 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]
