-
Notifications
You must be signed in to change notification settings - Fork 9
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
Doesn't compile on Ubuntu 24.04 #323
Comments
Which version of Swift are you using? |
$ swift --version
Swift version 5.10 (swift-5.10-RELEASE)
Target: x86_64-unknown-linux-gnu |
Can you give an example of the error? 5.10 is the correct version for this project, and it's building fine for me on debian 12, even after cleaning the project. There are a lot of warnings, but I'm not seeing any build errors, and the server runs fine. |
|
It's possible it only affects Ubuntu 24.04, since that's also the version mentioned in weichsel/ZIPFoundation#320. |
We do use ubuntu on our server, but I can't remember which version... I'm not really sure it matters, though, since it's dockerized and using bitnami images. @cohoe Do you have any suggestions, or a recommended ubuntu version? |
Not sure if there's anything we can really do to solve this until ZIPFoundation puts out a new version. |
For now, you can locally switch the package() method to |
As you may have been able to tell from the paths, my Ubuntu was on WSL, so I installed Debian as well and it seems to be working there. |
I haven't dug into this at all yet. We've used Ubuntu 22.04 as the server OS and base container image for the last two sailings in 2023 and 2024 (20.04 before that in 2022, the debut of Swiftarr). When I did my developing on Fedora 37ish there was a glibc update that made certain Swift features not work natively on my laptop. It took a release or two of the OS or Swift or both for that to sort itself out. Meaning this happens, and it's unfortunate. Yay evolving tech. I do not intend on spending cycles to upgrade us to Ubuntu 24.04 for the 2025 sailing unless there is a really compelling reason to do so. The next big jump in my mind will likely come along with Swift 6. |
You're pinned to a released version of ZIPFoundation, but their last release didn't unwrap an optional value in the else case of a
#if os(macos) || ...
check. They fixed it at head in weichsel/ZIPFoundation#323, but they haven't released a version with the fix.The text was updated successfully, but these errors were encountered: