Skip to content

Package.resolved is out of date on Linux (missing OpenCombine pin) #286

Closed

Description

@ap-1

Description

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

SDK version: n/a

Activity

  1. added
    bug
    on Oct 1, 2026
  2. kabiroberai commented on Oct 2, 2026

    @kabiroberai
    Member

    Created pointfreeco/combine-schedulers#120 since this is ultimately a bug in combine-schedulers. I'll leave this issue open for viz.

  3. kabiroberai commented on Oct 2, 2026

    @kabiroberai
    Member

    Okay I think I found a workaround: #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions