Skip to content

Conversation

@eumiro
Copy link
Contributor

@eumiro eumiro commented Sep 3, 2023

No description provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AIRFLOW_SOURCES_DIR = Path(__file__).resolve().parents[3]
AIRFLOW_SOURCES_DIR = Path(__file__).parents[3].resolve()

or

Suggested change
AIRFLOW_SOURCES_DIR = Path(__file__).resolve().parents[3]
AIRFLOW_SOURCES_DIR = Path(__file__).parents[3]

since the original code seems to work without resolving anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 13 occurrences of resolve().parents in the repo. Should we fix them all?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’d be awesome, although we can focus on the lines changed in this PR first.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. That always bothered me :)

@potiuk
Copy link
Member

potiuk commented Sep 4, 2023

pending @uranusjr chaanges.

@potiuk potiuk merged commit 9079093 into apache:main Sep 7, 2023
@eumiro eumiro deleted the import-os-path branch September 7, 2023 17:35
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.2 milestone Oct 3, 2023
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Oct 3, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 5, 2023
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
(cherry picked from commit 9079093)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:providers area:system-tests area:webserver Webserver related Issues kind:documentation provider:amazon AWS/Amazon - related issues provider:ftp provider:google Google (including GCP) related issues type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants