-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(swiftpm): Support lockfile format version 2
The data class is quite similar to the one for version 1. However, it makes sense to have separated code paths, so that things remain simple as soon as the logic gets extended. For example, the `kind` attribute may need to be considered in case the implementation gets extended to handle local dependencies. Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information
Showing
5 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...ge-managers/swiftpm/src/funTest/assets/projects/synthetic/expected-output-lockfile-v2.yml
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,44 @@ | ||
--- | ||
project: | ||
id: "SwiftPM::src/funTest/assets/projects/synthetic/lockfile-v2/Package.resolved:<REPLACE_REVISION>" | ||
definition_file_path: "<REPLACE_DEFINITION_FILE_PATH>" | ||
declared_licenses: [] | ||
declared_licenses_processed: {} | ||
vcs: | ||
type: "" | ||
url: "" | ||
revision: "" | ||
path: "" | ||
vcs_processed: | ||
type: "Git" | ||
url: "<REPLACE_URL_PROCESSED>" | ||
revision: "<REPLACE_REVISION>" | ||
path: "<REPLACE_PATH>" | ||
homepage_url: "" | ||
packages: | ||
- id: "Swift::github.com/alamofire/alamofire:5.4.4" | ||
purl: "pkg:swift/github.com%2Falamofire%[email protected]" | ||
declared_licenses: [] | ||
declared_licenses_processed: {} | ||
description: "" | ||
homepage_url: "" | ||
binary_artifact: | ||
url: "" | ||
hash: | ||
value: "" | ||
algorithm: "" | ||
source_artifact: | ||
url: "" | ||
hash: | ||
value: "" | ||
algorithm: "" | ||
vcs: | ||
type: "Git" | ||
url: "https://github.com/Alamofire/Alamofire.git" | ||
revision: "d120af1e8638c7da36c8481fd61a66c0c08dc4fc" | ||
path: "" | ||
vcs_processed: | ||
type: "Git" | ||
url: "https://github.com/Alamofire/Alamofire.git" | ||
revision: "d120af1e8638c7da36c8481fd61a66c0c08dc4fc" | ||
path: "" |
14 changes: 14 additions & 0 deletions
14
...ckage-managers/swiftpm/src/funTest/assets/projects/synthetic/lockfile-v2/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,14 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "alamofire", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/Alamofire/Alamofire.git", | ||
"state" : { | ||
"revision" : "d120af1e8638c7da36c8481fd61a66c0c08dc4fc", | ||
"version" : "5.4.4" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
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