Skip to content

Commit 32bd2bd

Browse files
committed
expose swift-package-registry as top level tool (#5679)
motivation: support of package registry changes: * make sure swift-package-registry is installed (symlinked) via the bootstrap script * add entry point in swift-package executable
1 parent d23ffce commit 32bd2bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/swift-package/main.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ case "swift-run":
2828
SwiftRunTool.main()
2929
case "swift-package-collection":
3030
SwiftPackageCollectionsTool.main()
31+
case "swift-package-registry":
32+
SwiftPackageRegistryTool.main()
3133
default:
3234
fatalError("swift-package launched with unexpected name: \(execName ?? "(unknown)")")
3335
}

Utilities/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def install_swiftpm(prefix, args):
423423
# Install the swift-package tool and create symlinks to it.
424424
cli_tool_dest = os.path.join(prefix, "bin")
425425
install_binary(args, "swift-package", cli_tool_dest)
426-
for tool in ["swift-build", "swift-test", "swift-run", "swift-package-collection"]:
426+
for tool in ["swift-build", "swift-test", "swift-run", "swift-package-collection", "swift-package-registry"]:
427427
src = "swift-package"
428428
dest = os.path.join(cli_tool_dest, tool)
429429
note("Creating tool symlink from %s to %s" % (src, dest))

0 commit comments

Comments
 (0)