Repository navigation
fix(build): compile with Swift 6.2 (CI/release toolchain) - #38
Conversation
CI and release builds use Swift 6.2.4, which can't infer `.init(rawValue:)`
inside `value.flatMap { .init(…) }.map { [$0] }` (Swift 6.4 can), so main
has failed to build on CI since #32. Route the eight filter parameters
through a generic `sdkFilter(_:)` whose SDK type comes from the parameter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The filter requests retain their prior behavior, and no user-facing regression is established. The change presents minimal merge risk. Pre-merge checks |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #38 +/- ##
==========================================
+ Coverage 82.04% 82.36% +0.31%
==========================================
Files 492 518 +26
Lines 14362 15649 +1287
==========================================
+ Hits 11784 12889 +1105
- Misses 2578 2760 +182
🚀 New features to boost your workflow:
|
Why
mainhas failed Build & Test on CI since #32, so every open PR (#33–#37) fails too. CI and the release workflow build with Swift 6.2.4. Swift 6.2 can't infer.init(rawValue:)insidevalue.flatMap { .init(…) }.map { [$0] }; Swift 6.4, used locally, can. A release cut frommainwould fail the same way.What changed
The eight filter parameters in the asset-library image, video and placement adapters now go through a generic
sdkFilter(_:). Its SDK type comes from the parameter being filled. Behaviour is unchanged.How it was verified
mainCI run on Swift 6.2.4 failed withmember 'init(rawValue:)' … produces result of type …, but context expects …?.swift testpasses, including the tests that pin each filter's exact query string.Checklist
swift testpasses (the failing build on CI's toolchain)asc web-server(n/a)## [Unreleased]inCHANGELOG.md(n/a: fixes an unreleased build break)make docs && make check-docspasses.p8, issuer ID or Apple ID session in the diff, output or screenshots🤖 Generated with Claude Code
Summary by CodeRabbit