forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some swift updates failing when
directory
is configured (depend…
…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.
- Loading branch information
1 parent
029cd22
commit 546330f
Showing
6 changed files
with
111 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
swift/spec/fixtures/projects/ReactiveCocoaNested/subfolder/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "CwlCatchException", | ||
"repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "35f9e770f54ce62dd8526470f14c6e137cef3eea", | ||
"version": "2.1.1" | ||
} | ||
}, | ||
{ | ||
"package": "CwlPreconditionTesting", | ||
"repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "c21f7bab5ca8eee0a9998bbd17ca1d0eb45d4688", | ||
"version": "2.1.0" | ||
} | ||
}, | ||
{ | ||
"package": "Nimble", | ||
"repositoryURL": "https://github.com/Quick/Nimble.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "c93f16c25af5770f0d3e6af27c9634640946b068", | ||
"version": "9.2.1" | ||
} | ||
}, | ||
{ | ||
"package": "Quick", | ||
"repositoryURL": "https://github.com/Quick/Quick.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "e206b8deba0d01fce70388a6d9dc66cba5603958", | ||
"version": "7.0.0" | ||
} | ||
}, | ||
{ | ||
"package": "ReactiveSwift", | ||
"repositoryURL": "https://github.com/ReactiveCocoa/ReactiveSwift", | ||
"state": { | ||
"branch": null, | ||
"revision": "40c465af19b993344e84355c00669ba2022ca3cd", | ||
"version": "7.1.1" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
25 changes: 25 additions & 0 deletions
25
swift/spec/fixtures/projects/ReactiveCocoaNested/subfolder/Package.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// swift-tools-version:5.2 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "ReactiveCocoa", | ||
platforms: [ | ||
.macOS(.v10_13), .iOS(.v11), .tvOS(.v11), .watchOS(.v4) | ||
], | ||
products: [ | ||
.library(name: "ReactiveCocoa", targets: ["ReactiveCocoa"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift", from: "7.0.0"), | ||
.package(url: "https://github.com/Quick/Quick.git", from: "7.0.0"), | ||
.package(url: "https://github.com/Quick/Nimble.git", from: "9.0.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "ReactiveCocoa", | ||
dependencies: [] | ||
) | ||
], | ||
swiftLanguageVersions: [.v5] | ||
) |
Empty file.