Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some swift updates failing when directory is configured #7674

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Jul 31, 2023

The update checker temporarily tries to update versions, and then parses to resulting lockfile to figure out what the latest resolvable version is.

To do this, it uses a modified manifest with unlocked depencies.

This modified manifest was not inheriting the directory property from the original manifest and that was causing swift to be run from the wrong folder, and thus reparsing of the updated lockfile fail.

To fix that, make sure manifests used by the UpdateChecker inherit the directory property from the original manifests.

@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner July 31, 2023 19:51
@github-actions github-actions bot added the L: swift Swift packages label Jul 31, 2023
The update checker temporarily tries to update versions, and then parses
to resulting lockfile to figure out what the latest resolvable version
is.

To do this, it uses a modified manifest with unlocked depencies.

This modified manifest was not inheriting the `directory` property from
the original manifest and that was causing swift to be run from the
wrong folder, and thus reparsing of the updated lockfile file.

To fix that, make sure manifests use by the UpdateChecker inherit the
`directory` property from the original manifests.
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/swift-updates-with-dir branch from 6031260 to 741a3a6 Compare July 31, 2023 20:38
@deivid-rodriguez deivid-rodriguez merged commit 7cfced0 into main Jul 31, 2023
90 checks passed
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/swift-updates-with-dir branch July 31, 2023 20:45
brettfo pushed a commit to brettfo/dependabot-core that referenced this pull request Oct 11, 2023
…abot#7674)

The update checker temporarily tries to update versions, and then parses
to resulting lockfile to figure out what the latest resolvable version
is.

To do this, it uses a modified manifest with unlocked depencies.

This modified manifest was not inheriting the `directory` property from
the original manifest and that was causing swift to be run from the
wrong folder, and thus reparsing of the updated lockfile file.

To fix that, make sure manifests use by the UpdateChecker inherit the
`directory` property from the original manifests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: swift Swift packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants