Skip to content

Commit ebb8feb

Browse files
committed
Fix symlinked swift-experimental-destination invocations
`swift experimental-destination` subcommands no longer work and always display help output. This is a regression introduced in #6362 after making `SwiftDestinationTool` conform to `AsyncParsableCommand` instead of `ParsableCommand` but not updating `swift-package-manager` command sources to call `async` overload of `main()` function on `SwiftDestinationTool`. rdar://107618266
1 parent 8c6d925 commit ebb8feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/swift-package-manager/SwiftPM.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ let execName = (try? AbsolutePath(validating: firstArg).basenameWithoutExt) ??
2222

2323
@main
2424
struct SwiftPM {
25-
static func main() {
25+
static func main() async {
2626
switch execName {
2727
case "swift-package":
2828
SwiftPackageTool.main()
2929
case "swift-build":
3030
SwiftBuildTool.main()
3131
case "swift-experimental-destination":
32-
SwiftDestinationTool.main()
32+
await SwiftDestinationTool.main()
3333
case "swift-test":
3434
SwiftTestTool.main()
3535
case "swift-run":

0 commit comments

Comments
 (0)