Repository navigation
Pin FOSUtilities to release 0.22.x; move to Swift 6.4.2 and Xcode 27.2 - #29
Merged
Merged
Conversation
FOSUtilities now publishes releases, so stop tracking `branch: "main"`. The lockfile had it at a February 2026 revision, 489 commits behind, which does not compile on Swift 6.4. Package.swift pins `.upToNextMinor(from: "0.22.0")`: the library is still 0.x and its minor releases carry breaking changes. Re-projected for the 0.22.0 API: - LandingPageRequest: the canonical initializer now takes `sort:`. - LandingPageViewModel+Factory: VaporViewModelFactory and VaporModelFactoryContext were removed; the factory is a VaporResponseBodyFactory with a synchronous `body(context:)`, and the framework's default `encodeResponse` replaces the per-type one. - routes: `register(viewModel:)` was removed; register the request with `register(request:app:)`. Verified against production: the served route is unchanged (/landing_page_landing_page_view_model), all 37 response values match in English and Spanish, and the rendered page is identical. The response gains one additive field per ViewModel (`vmId.fsh`). Adds the versioned ViewModel JSON baselines that FOSTesting writes on first run and expects to be committed. All other packages are updated to current as well (swift-syntax 604, Ignite main, Yams 6.2.2 replacing the WASI fork).
The Xcode project also tracked FOSUtilities `branch = main`. Pin it to the same release range as Package.swift. Remove the remote swift-testing package reference. It requires swift-syntax below 601, which conflicts with FOSUtilities 0.22.0 (swift-syntax 604), and Testing ships with the toolchain. The FOSShowcase scheme builds unsigned for iOS, macOS and visionOS on Xcode 27.2 with no source changes.
…CI job real - Dockerfile-server, Dockerfile-client: build on swift:6.4.2-noble. - CI: test on Swift 6.4.2 and build with Xcode 27.2. - CI: the Xcode job built the scheme `FOSUtilities-Package`, which does not exist in this repository, and piped xcodebuild through xcpretty without pipefail, so it reported success without building anything. It now builds the FOSShowcase scheme, unsigned, with pipefail. - CI: the Xcode matrix is iOS and macOS. watchOS is dropped because the watch app target links no package products and does not build; tvOS is dropped because it is not a destination of the FOSShowcase scheme. - CLAUDE.md: correct the Swift, tools and registration facts.
GitHub's hosted runners have no Xcode 27.x image; 26.6 on macos-26 is the newest available. Pin the runner and the Xcode version together, as FOSUtilities' CI does.
xcpretty drops the reason for failures that happen before compilation, and fail-fast cancelled the sibling platform's job.
A fresh runner has not trusted FOSUtilities' macros, so Xcode fails the build at the dependency graph with "Macro FOSMacros must be enabled".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
branch: "main".What
Dependencies
Package.swiftand the Xcode project pin FOSUtilities with.upToNextMinor(from: "0.22.0"). The library is still 0.x and its minor releases carry breaking changes.main, Yams 6.2.2 replacing the WASI fork).Source, re-projected for the 0.22.0 API
LandingPageRequest: the canonical initializer now takessort:.LandingPageViewModel+Factory:VaporViewModelFactoryandVaporModelFactoryContextwere removed. The factory is now aVaporResponseBodyFactorywith a synchronousbody(context:), and the framework's defaultencodeResponsereplaces the per-type one.routes.swift:register(viewModel:)was removed; the request is registered withregister(request:app:).Xcode project
swift-testingpackage reference. It requires swift-syntax below 601, which conflicts with FOSUtilities 0.22.0, and Testing ships with the toolchain.Toolchain
Dockerfile-server,Dockerfile-client: build onswift:6.4.2-noble.CI repair
The Xcode job was building the scheme
FOSUtilities-Package, which does not exist in this repository, and piping throughxcprettywithoutpipefail. It reported success without building anything.FOSShowcasescheme, unsigned, withpipefail.main). tvOS is dropped because it is not a destination of theFOSShowcasescheme.Tests
Verification
Local, on Swift 6.4.2 and Xcode 27.2:
swift build --build-testsandswift testpass. The suite is one test.VaporWebServerandVaporLeafWebAppand compared with production:/landing_page_landing_page_view_modelvmId.fsh)FOSShowcasescheme builds unsigned for iOS, macOS and visionOS.Not verified locally:
Known, not addressed here
mainor here.WebServerTestsis commented out.