diff --git a/Package.resolved b/Package.resolved index 7b36155..60cf8b8 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,13 +1,13 @@ { - "originHash" : "0cd8515406137deb69d604344cc3fc16f80b2518f4dd27a5eeda64f7673d3cbd", + "originHash" : "4a541144be2c0eeb933e247eb979bdd12bfc3b3d61a512ccb733fcf9df22079d", "pins" : [ { "identity" : "shellkit", "kind" : "remoteSourceControl", "location" : "https://github.com/Cocoanetics/ShellKit", "state" : { - "branch" : "main", - "revision" : "ce2147463e7f08732112bb8929cd79944942f9d9" + "revision" : "40c1b417e6c6318d2ca644d9a3062dc6befd0e31", + "version" : "0.1.0" } }, { diff --git a/Package.swift b/Package.swift index d081636..a8d94ad 100644 --- a/Package.swift +++ b/Package.swift @@ -31,8 +31,14 @@ let package = Package( // virtualised Shell). The standalone `swift-script` CLI uses // `Shell.processDefault` so the binary still talks to real // FileHandles when run on its own. + // + // Versioned (not `branch: "main"`) so SwiftScript itself can be + // required by version: SwiftPM refuses a version requirement on a + // package whose own dependencies are branch-pinned. `upToNextMinor` + // because ShellKit is 0.x and a minor bump may change API; the + // family moves minors together (Cocoanetics/SwiftBash#89). .package(url: "https://github.com/Cocoanetics/ShellKit", - branch: "main"), + .upToNextMinor(from: "0.1.0")), ], targets: [ .target(