Struo
← Changelog

Swift package pins follow changed root requirements

The experimental Swift package and Xcode importers now select dependencies in Struo's graph. Existing Package.resolved pins remain preferences when they satisfy the active requirements. Struo observes Git references, evaluates manifests without native selection, and settles versions and traits in Starlark. It does not call swift package resolve.

The legacy swift_package_dependencies target no longer invokes native graph discovery or delegated SwiftPM builds, including when network access or a vendor tree was configured. Its checked-in snapshots remain inspectable, but builds fail with a migration diagnostic. Use swift_package_workspace and declare product relationships in Package.swift; the old target is no longer a linker provider for Apple consumers.

The selected graph emits proposed native lock bytes without modifying the source lockfile. A separate swift_package_lock_update target can produce native lock candidates for a bounded static tools-5.0 through 6.4 native manifest grammar. Every selected dependency must pass the same Starlark parser; dynamic declarations are rejected. Publication remains blocked pending apply-time external native-configuration guards. Executable-derived publication, signed registry support, selected package plugins and retained executable-manifest replay remain unavailable.

Independent Xcode native targets can compile while another target's package metadata is pending. Package builds wait for their version and trait constraints to settle. Experimental unsigned registry acquisition validates release metadata and archive checksums without invoking native resolution.

Git dependencies using local repository URLs are also acquired at their pinned revision, rather than skipped as if they were .package(path:) dependencies.

A dependency trait request with an explicitly empty condition stays disabled, matching Swift Package Manager, rather than enabling the trait unconditionally.