swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.75k stars 1.34k forks source link

[SR-7276] Swift Package Manager gets stuck during dependency resolution #4896

Open swift-ci opened 6 years ago

swift-ci commented 6 years ago
Previous ID SR-7276
Radar rdar://problem/38867198
Original Reporter tonisuter (JIRA User)
Type Bug

Attachment: Download

Environment Apple Swift version 4.2-dev (LLVM 95345677bd, Clang 8320c34f23, Swift 82ea1dcd39) Target: x86_64-apple-darwin17.4.0 The same problem also occurs with: Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2) Target: x86_64-apple-macosx10.9
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Package Manager | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 0db62a2b87afc5eda0b7b2cc93414354

Issue Description:

When I create a Swift package with the following Package.swift file, it gets stuck during dependency resolution:

// swift-tools-version:4.0

import PackageDescription

let package = Package(
  name: "ExampleProject",
  dependencies: [
    .package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.2.0"),
    .package(url: "https://github.com/IBM-Swift/HeliumLogger.git", from: "1.7.1"),
    .package(url: "https://github.com/IBM-Swift/Kitura-StencilTemplateEngine.git", from: "1.8.5"),
    .package(url: "https://github.com/IBM-Swift/Kitura-CouchDB.git", from: "2.0.0"),
    .package(url: "https://github.com/IBM-Swift/Kitura-Session.git", from: "3.0.0"),
    .package(url: "https://github.com/vapor-community/markdown.git", from: "0.4.0"),
    .package(url: "https://github.com/tonisuter/CMagickWand.git", from: "0.1.0"),
    .package(url: "https://github.com/IBM-Swift/BlueCryptor.git", from: "1.0.0"),
  ],
  targets: [
    .target(
      name: "ExampleProject",
      dependencies: [
        "Kitura",
        "KituraStencil",
        "HeliumLogger",
        "CouchDB",
        "KituraSession",
        "SwiftMarkdown",
        "Cryptor",
      ]
    ),
  ]
)

There seems to be an issue with the BlueCryptor package. If I change its version from "1.0.0" to "0.8.7" the dependency resolution succeeds. However, according to its Github repository, version 1.0.0 should be a valid version.

weissi commented 4 years ago

@aciidb0mb3r/ @neonichu pretty sure this is fixed with pubgrub?