Uploaded image for project: 'Swift'
  1. Swift
  2. SR-965

How to depend on a specified Pre-release version of package with the Swift Package Manager

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Duplicate
    • Component/s: Package Manager
    • Labels:
      None
    • Environment:

      OS X 10.11.3(15D21)

      Description

      • Apple Platforms
      • Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3de75)

      Himotoki package has tags 2.0.0-beta.1 and 2.0.0-beta.2, and I intend to depend on 2.0.0-beta.1.

      If I implement the following:

      import PackageDescription
      
      let package = Package(
          name: "Example",
          dependencies: [
              .Package(url: "https://github.com/ikesyo/Himotoki.git", Version(2, 0, 0, prereleaseIdentifiers: ["beta", "1"]))
          ]
      )
      

      Then, I expect 2.0.0-beta.1 is downloaded, but 2.0.0-beta.2 is downloaded because the resulting range is 2.0.0-beta.1..<2.0.1.
      I think it's unexpected behavior.

      I'm sorry if I got the wrong idea.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Martha Satoshi Hachiya
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: