You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2025/05/08 09:41:33 UTC

Re: [I] Airflow 3.0.0 : GitDagBundle does not import internal sources modules [airflow]

uranusjr commented on issue #49838:
URL: https://github.com/apache/airflow/issues/49838#issuecomment-2862421383

   We have this line in `airflow.settings`:
   
   https://github.com/apache/airflow/blob/2d1905816ac0d037d32f6fd1e788ba6525eff584/airflow-core/src/airflow/settings.py#L618
   
   that adds the dags folder to the import path, and thus makes everything in there importable. This is not done to any other bundles, so they don’t work the same.
   
   Since people are likely to expect things in a bundle to be importable, we should probably add something to the dag processor, so the root folder of each bundle is on the import path _when the bundle is being processed_. We should probably also remove this line from `settings` so things inside the dags folder don’t pollute other bundles, but I’m not sure if it’d have any unintended side effects.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org