You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Package.resolved is out of date on Linux (missing OpenCombine pin) #286
On Linux, the committed Package.resolved doesn't match the dependency graph SwiftPM resolves, because it has no pin for OpenCombine. This is the Darwin vs Linux graph difference #281 tried to remove.
This breaks building from the lockfile, which I ran into trying to package xtool for nixpkgs (where dependencies are vendored from Package.resolved and the build has no network access, so SwiftPM fails trying to clone OpenCombine). You can reproduce it without Nix:
git clone https://github.com/xtool-org/xtool &&cd xtool
git checkout 1.20.1 # also reproduces on main
swift package resolve --force-resolved-versions
error: an out-of-date resolved file was detected at .../Package.resolved, which is not allowed when automatic dependency resolution is disabled; please make sure to update the file to reflect the changes in dependencies. Running resolver because the following dependencies were added: 'opencombine' (https://github.com/OpenCombine/OpenCombine.git)
A plain swift package resolve on Linux fetches OpenCombine and adds an opencombine pin. I also tried on macOS 27.0 (Swift 6.4):
swift package resolve, with or without --force-resolved-versions, keeps an existing opencombine pin
swift package update removes it. Also, resolving from scratch doesn't add it
Environment
Host OS (macOS/Linux/WSL): macOS; Linux
Host OS version: macOS 27.0 (26A5378j); NixOS 26.11 (Linux 7.2.4-cachyos-lto)
iOS device version: n/a
Swift version: Apple Swift 6.4 (swiftlang-6.4.0.34.1) on macOS; 6.2.4 (swift-6.2.4-RELEASE) on Linux
Activity
kabiroberai commentedon Oct 2, 2026
Created pointfreeco/combine-schedulers#120 since this is ultimately a bug in combine-schedulers. I'll leave this issue open for viz.
kabiroberai commentedon Oct 2, 2026
Okay I think I found a workaround: #288
deps: force OpenCombine in the lockfile (xtool-org#288)