Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 5.9 toolchain & macOS Sonoma beta #402

Merged
merged 4 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.20.0 (5 Aug 2023)

This release adds SwiftWasm 5.9 toolchain support.

# 0.19.1 (9 May 2023)

This release fixes the wrong toolchain version installed in docker image.
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/swiftwasm/swift:5.8-focal
FROM ghcr.io/swiftwasm/swift:5.9-focal

LABEL maintainer="SwiftWasm Maintainers <[email protected]>"
LABEL Description="Carton is a watcher, bundler, and test runner for your SwiftWasm apps"
Expand All @@ -16,7 +16,7 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
rm -r /var/lib/apt/lists/*

ENV CARTON_ROOT=/root/.carton
ENV CARTON_DEFAULT_TOOLCHAIN=wasm-5.8.0-RELEASE
ENV CARTON_DEFAULT_TOOLCHAIN=wasm-5.9.0-RELEASE

RUN mkdir -p $CARTON_ROOT/sdk && \
mkdir -p $CARTON_ROOT/sdk/$CARTON_DEFAULT_TOOLCHAIN && \
Expand Down
42 changes: 30 additions & 12 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,17 @@
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "e394bf350e38cb100b6bc4172834770ede1b7232",
"version": "1.0.3"
"revision": "fee6933f37fde9a5e12a1e4aeaa93fe60116ff2a",
"version": "1.2.2"
}
},
{
"package": "swift-asn1",
"repositoryURL": "https://github.com/apple/swift-asn1.git",
"state": {
"branch": null,
"revision": "805deae27a7506dcad043604c00a9dc52d465dcb",
"version": "0.7.0"
}
},
{
Expand All @@ -91,6 +100,15 @@
"version": "1.3.3"
}
},
{
"package": "swift-certificates",
"repositoryURL": "https://github.com/apple/swift-certificates.git",
"state": {
"branch": null,
"revision": "35a7df2d9d71c401a47de9be2e3de629a01370c2",
"version": "0.4.1"
}
},
{
"package": "swift-collections",
"repositoryURL": "https://github.com/apple/swift-collections.git",
Expand All @@ -105,25 +123,25 @@
"repositoryURL": "https://github.com/apple/swift-crypto.git",
"state": {
"branch": null,
"revision": "75ec60b8b4cc0f085c3ac414f3dca5625fa3588e",
"version": "2.2.4"
"revision": "33a20e650c33f6d72d822d558333f2085effa3dc",
"version": "2.5.0"
}
},
{
"package": "swift-driver",
"repositoryURL": "https://github.com/apple/swift-driver.git",
"state": {
"branch": "release/5.8",
"revision": "7cfe0c0b6e6297efe88a3ce34e6138ee7eda969e",
"branch": "release/5.9",
"revision": "e7b2840dbfb06007874099c6f71db6b46a3daaa1",
"version": null
}
},
{
"package": "llbuild",
"repositoryURL": "https://github.com/apple/swift-llbuild.git",
"state": {
"branch": "release/5.8",
"revision": "dccfc2e127a34b89a849407594cf2d604b598ba9",
"branch": "release/5.9",
"revision": "d73a305d6e5a82e4bf3bf1727da3d1376e87efab",
"version": null
}
},
Expand Down Expand Up @@ -203,8 +221,8 @@
"package": "SwiftPM",
"repositoryURL": "https://github.com/apple/swift-package-manager.git",
"state": {
"branch": "release/5.8",
"revision": "fe383ccb099ff65ca1403137e7383aedaf99af87",
"branch": "release/5.9",
"revision": "0479d07cb08310224e68f80d6365982d90cc313e",
"version": null
}
},
Expand All @@ -221,8 +239,8 @@
"package": "swift-tools-support-core",
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git",
"state": {
"branch": "release/5.8",
"revision": "ac4871e01ef338cb95b5d28328cab0ec1dfae935",
"branch": "release/5.9",
"revision": "279be8ac3fe7829cc15e93693c45931a1bf7f112",
"version": null
}
},
Expand Down
11 changes: 5 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.5
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -21,17 +21,16 @@ let package = Package(
),
.package(
url: "https://github.com/apple/swift-argument-parser.git",
.upToNextMinor(from: "1.0.3")
.upToNextMinor(from: "1.2.2")
),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.34.0"),
.package(
name: "SwiftPM",
url: "https://github.com/apple/swift-package-manager.git",
.branch("release/5.8")
branch: "release/5.9"
),
.package(
url: "https://github.com/apple/swift-tools-support-core.git",
.branch("release/5.8")
branch: "release/5.9"
),
.package(url: "https://github.com/vapor/vapor.git", from: "4.57.1"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "2.2.0"),
Expand Down Expand Up @@ -71,7 +70,7 @@ let package = Package(
dependencies: [
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "SwiftPMDataModel-auto", package: "SwiftPM"),
.product(name: "SwiftPMDataModel-auto", package: "swift-package-manager"),
"CartonHelpers",
"WasmTransformer",
]
Expand Down
4 changes: 0 additions & 4 deletions Sources/CartonHelpers/Async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ extension Sequence {
}

/// A type that can be executed as part of a nested tree of commands.
public protocol AsyncParsableCommand: ParsableCommand {
mutating func run() async throws
}

extension AsyncParsableCommand {
public mutating func run() throws {
throw CleanExit.helpRequest(self)
Expand Down
2 changes: 1 addition & 1 deletion Sources/CartonHelpers/DefaultToolchain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.

public let defaultToolchainVersion = "wasm-5.8.0-RELEASE"
public let defaultToolchainVersion = "wasm-5.9.0-RELEASE"
2 changes: 1 addition & 1 deletion Sources/CartonHelpers/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.

public let cartonVersion = "0.19.0"
public let cartonVersion = "0.20.0"
2 changes: 1 addition & 1 deletion Sources/CartonKit/Model/Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extension Template {
) throws {
try fileSystem.writeFileContents(project.path.appending(component: "Package.swift")) {
var content = """
// swift-tools-version:5.8
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "\(project.name)",\n
Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftToolchain/Toolchain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import TSCBasic
import TSCUtility
import WasmTransformer

public let compatibleJSKitVersion = Version(0, 15, 0)
public let compatibleJSKitVersion = Version(0, 18, 0)

enum ToolchainError: Error, CustomStringConvertible {
case directoryDoesNotExist(AbsolutePath)
Expand Down Expand Up @@ -212,7 +212,7 @@ public final class Toolchain {
switch target.type {
case .regular, .executable:
return RelativePath("Sources").appending(component: target.name).pathString
case .test, .system, .binary, .plugin:
case .test, .system, .binary, .macro, .plugin:
return nil
}
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carton",
"version": "0.19.0",
"version": "0.20.0",
"description": "📦 Watcher, bundler, and test runner for your SwiftWasm apps ",
"main": "index.js",
"repository": {
Expand Down