Skip to content

Fastfile: changed CommonFastfile import relative to current file#1748

Merged
NachoSoto merged 1 commit into
mainfrom
fastlane-import-common
Jul 1, 2022
Merged

Fastfile: changed CommonFastfile import relative to current file#1748
NachoSoto merged 1 commit into
mainfrom
fastlane-import-common

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

Fixes https://app.circleci.com/pipelines/github/RevenueCat/purchases-ios/7382/workflows/91dd2e3a-9244-405e-b04c-44d2a4de047f/jobs/30748

With #1719 this was importing CommonFastfile. However, some release scripts have a different working directory, like Tests/InstallationTests/CarthageInstallation, that import the root Fastfile. When that happens, this import was being evaluated from that working directory, and failing to find CommonFastfile.

Fixes https://app.circleci.com/pipelines/github/RevenueCat/purchases-ios/7382/workflows/91dd2e3a-9244-405e-b04c-44d2a4de047f/jobs/30748

With #1719 this was importing `CommonFastfile`. However, some release scripts have a different working directory, like `Tests/InstallationTests/CarthageInstallation`, that `import` the root `Fastfile`. When that happens, this `import` was being evaluated from that working directory, and failing to find `CommonFastfile`.
@NachoSoto NachoSoto requested review from a team and tonidero July 1, 2022 16:28
@NachoSoto NachoSoto mentioned this pull request Jul 1, 2022

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ohh I was completely unaware of that one. Sorry for all these issues!

@NachoSoto NachoSoto merged commit 0dfa812 into main Jul 1, 2022
@NachoSoto NachoSoto deleted the fastlane-import-common branch July 1, 2022 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants