Skip to content

Protect against the case where Airflow is checked out in AIRFLOW_HOME - #37697

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:protect-against-airflow-checked-out-in-airflow-home
Feb 26, 2024
Merged

Protect against the case where Airflow is checked out in AIRFLOW_HOME#37697
potiuk merged 1 commit into
apache:mainfrom
potiuk:protect-against-airflow-checked-out-in-airflow-home

Conversation

@potiuk

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

This is what the user will see:

Screenshot 2024-02-26 at 08 02 13

@potiuk
potiuk merged commit 1d74685 into apache:mainFeb 26, 2024
@potiuk
potiuk deleted the protect-against-airflow-checked-out-in-airflow-home branch February 26, 2024 08:32
Sign up for freeto 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

@potiuk@Taragolis@eladkal