potiuk commented on PR #30813:
URL: https://github.com/apache/airflow/pull/30813#issuecomment-1518656232

   This is a doc-only change - updating our examples of docs extending and 
customising. I think it might be worthwile to cherry-pick it to 2.6.0, as it 
should help our users to avoid surprising upgrades/downgrade of airflow when 
they are adding conflicting dependencies. This was a recurring pattern in quite 
a number of Slack threads and github issues, the problem is that `pip` treats 
airflow as "just another python package" and when user installs conflicting 
dependencies, it will downgrade or upgrade airflow without asking (which is of 
course rather disastrous). And it especially annoying for automated CI 
pipelines.
   
   This change updates our examples where requirements are added to also 
include `apache-airflow==<version>` in their requirements when they are adding 
them - this will keep airflow in the version that was there originally, and 
fail such installation with a conflict informatiion rather than 
downgrading/upgrading airflow silently.


-- 
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]

Reply via email to