Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Feb 26, 2024

When airflow is checked out in the same directory as AIRFLOW_HOME, cleanup might remove everythig including .git folder. And this might happen because people might check out airflow in their HOME directory - and default AIRFLOW_HOME is ${HOME}/airflow.

THis PR will detect if Airflow is checked out AIRFLOW_HOME and will error out in this case.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

When airflow is checked out in the same directory as AIRFLOW_HOME,
cleanup might remove everythig including .git folder. And this might
happen because people might check out airflow in their HOME
directory - and default AIRFLOW_HOME is ${HOME}/airflow.

THis PR will detect if Airflow is checked out AIRFLOW_HOME and
will error out in this case.
@potiuk
Copy link
Member Author

potiuk commented Feb 26, 2024

This is what the user will see:

Screenshot 2024-02-26 at 08 02 13

@potiuk potiuk merged commit 1d74685 into apache:main Feb 26, 2024
@potiuk potiuk deleted the protect-against-airflow-checked-out-in-airflow-home branch February 26, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants