Skip to content

Commit e15468c

Browse files
Merge pull request #3826 from SwiftPackageIndex/swift-6.2-trigger
Fully adopt Swift 6.2
2 parents 30c9a09 + 6971634 commit e15468c

35 files changed

+252
-139
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.gitlab.com/finestructure/spi-base:1.3.0
1+
FROM registry.gitlab.com/finestructure/spi-base:2.0.0
22

33
# Install SPM build dependencies
44
RUN apt-get update && apt-get install -y curl git make unzip \

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
name: Test
3030
runs-on: ubuntu-latest
3131
container:
32-
image: registry.gitlab.com/finestructure/spi-base:1.3.0
32+
image: registry.gitlab.com/finestructure/spi-base:2.0.0
3333
options: --privileged
3434
steps:
3535
- name: GH Runner bug workaround
@@ -160,7 +160,7 @@ jobs:
160160
name: Release build
161161
runs-on: ubuntu-latest
162162
container:
163-
image: registry.gitlab.com/finestructure/spi-base:1.3.0
163+
image: registry.gitlab.com/finestructure/spi-base:2.0.0
164164
options: --privileged
165165
steps:
166166
- name: GH Runner bug workaround

.github/workflows/query-performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
continue-on-error: true
3030
container:
31-
image: registry.gitlab.com/finestructure/spi-base:1.3.0
31+
image: registry.gitlab.com/finestructure/spi-base:2.0.0
3232
steps:
3333
- name: Checkout code
3434
uses: actions/checkout@v4

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# ================================
1919
# Build image
2020
# ================================
21-
FROM registry.gitlab.com/finestructure/spi-base:1.3.0 as build
21+
FROM registry.gitlab.com/finestructure/spi-base:2.0.0 as build
2222

2323
# Set up a build area
2424
WORKDIR /build
@@ -62,7 +62,7 @@ RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w
6262
# ================================
6363
# Run image
6464
# ================================
65-
FROM registry.gitlab.com/finestructure/spi-base:1.3.0
65+
FROM registry.gitlab.com/finestructure/spi-base:2.0.0
6666

6767
# NB sas 2022-09-23: We're not using a dedicated `vapor` user to run the executable, because it
6868
# makes managing the data in the checkouts volume difficult. See

LOCAL_DEVELOPMENT_SETUP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ The trickiest part of this is to ensure the test or app container can connect to
238238
So, in order to run the tests in a Linux container run:
239239

240240
```
241-
docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:1.3.0 swift test
241+
docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:2.0.0 swift test
242242
```
243243

244244
Make sure you use the most recent `spi-base` image. You can find the latest image name in the `test-docker` target, which also provides a convenient way to run all all tests in a docker container.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ test-docker:
8989
@# run tests inside a docker container
9090
docker run --rm -v "$(PWD)":/host -w /host \
9191
--add-host=host.docker.internal:host-gateway \
92-
registry.gitlab.com/finestructure/spi-base:1.3.0 \
92+
registry.gitlab.com/finestructure/spi-base:2.0.0 \
9393
make test
9494

9595
test-e2e: db-reset reconcile ingest analyze

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(
3232
.package(url: "https://github.com/SwiftPackageIndex/Plot.git", branch: "main"),
3333
.package(url: "https://github.com/SwiftPackageIndex/CanonicalPackageURL.git", from: "1.0.0"),
3434
.package(url: "https://github.com/SwiftPackageIndex/DependencyResolution.git", from: "1.1.2"),
35-
.package(url: "https://github.com/SwiftPackageIndex/SPIManifest.git", from: "1.9.0"),
35+
.package(url: "https://github.com/SwiftPackageIndex/SPIManifest.git", from: "1.10.0"),
3636
.package(url: "https://github.com/SwiftPackageIndex/SemanticVersion.git", from: "0.3.0"),
3737
.package(url: "https://github.com/SwiftPackageIndex/ShellOut.git", from: "3.3.0"),
3838
.package(url: "https://github.com/finestructure/swift-package-manager.git", branch: "release/6.1"),

Sources/App/Commands/TriggerBuilds.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,7 @@ struct BuildPair {
389389
case .iOS, .linux, .macosSpm, .macosXcodebuild, .tvOS, .watchOS:
390390
return BuildPair(platform, swiftVersion)
391391
case .visionOS:
392-
// visionOS is only available for Swift versions 5.9+
393-
return swiftVersion >= .v5_9 ? BuildPair(platform, swiftVersion) : nil
392+
return BuildPair(platform, swiftVersion)
394393
case .wasm:
395394
// Android is supported from Swift version 6.1+
396395
return swiftVersion >= .v6_1 ? BuildPair(platform, swiftVersion) : nil

Sources/App/Core/SwiftVersion+Build.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ extension SwiftVersion {
1818
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/1267#issuecomment-975379966
1919
// Patch versions are irrelevant here but the underlying type requires one, so use 0
2020
// in general.
21-
static let v5_9: Self = .init(5, 9, 0)
2221
static let v5_10: Self = .init(5, 10, 0)
2322
static let v6_0: Self = .init(6, 0, 0)
2423
static let v6_1: Self = .init(6, 1, 0)
24+
static let v6_2: Self = .init(6, 2, 0)
2525

2626
/// Currently supported swift versions for building
2727
static var allActive: [Self] {
28-
[.v5_9, .v5_10, .v6_0, .v6_1]
28+
[.v5_10, .v6_0, .v6_1, .v6_2]
2929
}
3030

3131
var xcodeVersion: String? {
3232
// NB: this is used for display purposes and not critical for compiler selection
3333
switch self {
34-
case .v5_9:
35-
return "Xcode 15.2"
3634
case .v5_10:
3735
return "Xcode 15.4"
3836
case .v6_0:
3937
return "Xcode 16.2"
4038
case .v6_1:
4139
return "Xcode 16.3"
40+
case .v6_2:
41+
return "Xcode 26.0"
4242
default:
4343
return nil
4444
}

0 commit comments

Comments
 (0)