Skip to content
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

[SR-4399] swift package fetch spins with invalid tags #5055

Closed
swift-ci opened this issue Mar 28, 2017 · 0 comments
Closed

[SR-4399] swift package fetch spins with invalid tags #5055

swift-ci opened this issue Mar 28, 2017 · 0 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-4399
Radar None
Original Reporter badthing (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

macOS Xcode Swift 3.1

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 4e4fe26eec772cc255544d28d6625428

duplicates:

  • SR-4400 Resolver is doing too much work

relates to:

  • SR-4400 Resolver is doing too much work

Issue Description:

SPM 3.1 spins when fetching dependencies with invalid tags.
The following Package.swift source will try and depend on several packages which have non-existent tags (0,0,0). Calling `swift package fetch` will seemingly spin forever.

I did not see the problem with only one bad dependency. In that case I got the right answer of "error: unsatisfiable"

// swift-tools-version:3.1

import PackageDescription

let package = Package(
name: "TestProj",
targets: [],
dependencies: [
.Package(url: "https://github.com/PerfectlySoft/Perfect-FileMaker.git", majorVersion: 2),
.Package(url: "https://github.com/SwiftORM/SQLite-StORM.git", Version(0,0,0)),
.Package(url: "https://github.com/SwiftORM/Postgres-StORM.git", Version(0,0,0)),
.Package(url: "https://github.com/SwiftORM/MongoDB-StORM.git", Version(0,0,0)),
.Package(url: "https://github.com/SwiftORM/MySQL-StORM.git", Version(0,0,0)),
.Package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2),
.Package(url: "https://github.com/PerfectlySoft/Perfect-WebSockets.git", majorVersion: 2),
.Package(url: "https://github.com/PerfectlySoft/Perfect-Notifications.git", majorVersion: 2),
.Package(url: "https://github.com/PerfectlySoft/Perfect-Zip.git", majorVersion: 2),
.Package(url: "https://github.com/PerfectlySoft/Perfect-Mustache.git", majorVersion: 2),
.Package(url: "https://github.com/PerfectlySoft/Perfect-CURL.git", majorVersion: 2),

],
exclude: []
)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant