-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
InternalError
on packages with -latest
component in their version
#7658
Comments
I was coming here to report the same thing. Adding another DescriptionThe following package fails to resolve: // swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "ReproSPMBug",
products: [
],
dependencies: [
.package(
url: "https://github.com/abidon/Mockable.git",
branch: "2d1a7a48665b2719f3abf812ac97f4daf23685a8"
),
.package(
url: "https://github.com/apple/swift-testing.git",
exact: "0.10.0"
),
.package(
url: "https://github.com/pointfreeco/swift-dependencies.git",
exact: "1.3.1"
),
]
) Adding or removing the Expected behaviorI expect the package to resolve in both Swift 5 and 6 language modes. Actual behaviorFailure to resolve:
Steps to reproduceCreate a new package with the above Package.swift file. Swift Package Manager version/commit hashSwift Package Manager - Swift 6.0.0-dev (Xcode 16 beta 1) Swift & OS versionMacOS 15.0 Beta (24A5264n) // Xcode 16.0 Beta (16A5171c) swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10) |
Looks like the problem here is not 6.0 but the fast that one of the depedencies is using |
Looks like this is partly intentional But I believe the |
I don't find this to be the case, removing |
InternalError
on packages with -latest
component in their version
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?Description
The following package fails to resolve:
But removing the
swiftLanguageVersions
parameter causes it to resolve just fine.Expected behavior
I expect the package to resolve in both Swift 5 and 6 language modes.
Actual behavior
Failure to resolve:
Steps to reproduce
Create a new package with the above Package.swift file, or simply download and open FigureOutDependencies.zip.
Swift Package Manager version/commit hash
Swift Package Manager - Swift 6.0.0-dev (Xcode 16 beta 1)
Swift & OS version (output of
swift --version ; uname -a
)swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
Target: arm64-apple-macosx14.0
Darwin MacBook-Pro.lan 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020 arm64
The text was updated successfully, but these errors were encountered: