forked from parse-community/Parse-Swift
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse Swift SDK.
Issue Description
On Swift 6.0, apparently this pattern is illegal
case .formatted(let formatter):
resulting in this error
4.179 [117/902] Compiling s3_both.cc
4.198 [119/902] Compiling SystemPackage Errno.swift
4.262 [120/902] Compiling ParseSwift API+BatchCommand.swift
4.263 /build/.build/checkouts/Parse-Swift/Sources/ParseSwift/Coding/ParseEncoder.swift:887:25: error: 'let' binding pattern cannot appear in an expression
4.263 885 | }
4.263 886 |
4.263 887 | case .formatted(let formatter):
4.263 | `- error: 'let' binding pattern cannot appear in an expression
4.263 888 | return NSString(string: formatter.string(from: date))
4.263 889 |
4.281 [120/902] Compiling encrypted_client_hello.cc
4.283 [120/902] Compiling s3_pkt.cc
4.283 [120/902] Compiling handshake_client.cc
4.284 [120/902] Compiling extensions.cc
4.285 [120/902] Compiling handoff.cc
4.286 [120/902] Compiling handshake.cc
4.288 [120/902] Compiling handshake_server.cc
------
Dockerfile:28
--------------------
27 | # N.B.: The static version of jemalloc is incompatible with the static Swift runtime.
28 | >>> RUN swift build -c release \
29 | >>> --static-swift-stdlib \
30 | >>> -Xlinker -ljemalloc
31 |
--------------------
failed to solve: process "/bin/sh -c swift build -c release --static-swift-stdlib -Xlinker -ljemalloc" did not complete successfully: exit code: 1
Steps to reproduce
Because the latest version of SwiftNIO runs on Swift 6.0, I decided to update my setup to 6.0 as well.
this is the 1st issue I've run into during building. I am pulling SwiftNIO because I am using Vapor for Parse-Server-Swift.
build Parse-Swift under Swift 6.x will cause this.
Actual Outcome
error, can't build.
Expected Outcome
no error.
Environment
new Docker setup, moving from 5.10.x to 6.x
Client
- Parse Swift SDK version:
5.12 - Xcode version:
FILL_THIS_OUT - Operating system (iOS, macOS, watchOS, etc.):
macOS - Operating system version:
26
Server
- Parse Server version:
6.5.5 - Operating system:
macOS - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
local
Database
- System (MongoDB or Postgres):
mongo - Database version: ``
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
mongodb
Logs
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request