When using "swift-configuration" with the YAMLSupport enabled, during package resolution, the process stops with the following error:
error: exhausted attempts to resolve the dependencies graph, with the following dependencies unresolved:
* 'yams' from https://github.com/jpsim/Yams
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "orchestrator-scheduler",
platforms: [.macOS(.v26)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.executable(
name: "orchestrator-scheduler",
targets: ["orchestrator-scheduler"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-configuration.git", from: "0.1.1", traits: [.defaults, "YAMLSupport"]),
// .package(url: "https://github.com/swift-server/swift-service-lifecycle.git", exact: "2.9.0"),
// .package(url: "https://github.com/vapor/fluent.git", exact: "4.13.0"),
// .package(url: "https://github.com/apple/swift-log.git", exact: "1.6.4"),
// .package(url: "https://github.com/vapor/fluent-postgres-driver.git", exact: "2.11.0")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.executableTarget(
name: "orchestrator-scheduler",
dependencies: [
.product(name: "Configuration", package: "swift-configuration"),
// .product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
// .product(name: "Fluent", package: "fluent"),
// .product(name: "Logging", package: "swift-log"),
// .product(name: "FluentPostgresDriver", package: "fluent-postgres-driver")
]
),
.testTarget(
name: "orchestrator-schedulerTests",
dependencies: ["orchestrator-scheduler"]
)
]
)
Package resolution does not fail or at least gives me a useful error.
Package resolution fails.
Is it reproducible with SwiftPM command-line tools:
swift build,swift test,swift packageetc?swift build,swift test,swift packageetc.Description
When using "swift-configuration" with the YAMLSupport enabled, during package resolution, the process stops with the following error:
My Package.swift:
Expected behavior
Package resolution does not fail or at least gives me a useful error.
Actual behavior
Package resolution fails.
Steps to reproduce
swift package resolveSwift Package Manager version/commit hash
6.2
Swift & OS version (output of
swift --version ; uname -a)Apple Swift version 6.2 (swift-6.2-RELEASE)
Target: arm64-apple-macosx26.0
Build config: +assertions
Darwin Felix-MacBook.local 25.0.0 Darwin Kernel Version 25.0.0: Wed Sep 17 21:41:45 PDT 2025; root:xnu-12377.1.9~141/RELEASE_ARM64_T6000 arm64