Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PackageSyntax] Implement mechanical package manifest editing
This commit adds a new module, PackageSyntax, which supports making mechanical edits to Package.swift manifests. It also exposes a CLI interface for this functionality [PackageSyntax] Adapt to changes in identity and package plugin APIs [PackageSyntax] Don;t include name argument in package dependency descriptions on 5.5+ [PackageSyntax] Improve tools version coverage of PackageEditor end to end tests [PackageSyntax] Adapt to more identity API changes [PackageSyntax] Use new branch and revision convenience methods on 5.5+ [PackageSyntax] Run the bootstrap script without PackageSyntax if SwiftSyntax isn't checked out or --skip-package-syntax is passed Revert "[PackageSyntax] Run the bootstrap script without PackageSyntax if SwiftSyntax isn't checked out or --skip-package-syntax is passed" This reverts commit 6f0a920.
- Loading branch information
Showing
23 changed files
with
4,313 additions
and
1,328 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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,6 @@ | ||
// swift-tools-version:5.3 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "MyPackage" | ||
) |
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,12 @@ | ||
// swift-tools-version:5.3 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "MyPackage2", | ||
products: [ | ||
.library(name: "Library", targets: ["Library"]) | ||
], | ||
targets: [ | ||
.target(name: "Library") | ||
] | ||
) |
1 change: 1 addition & 0 deletions
1
Fixtures/PackageEditor/OneProduct/Sources/Library/Library.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 @@ | ||
let x = 42 |
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
Oops, something went wrong.