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

swiftpm 4 incorrectly resolves prerelease major version as compatible with the current major version

    XMLWordPrintable

    Details

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

      % swift --version
      Apple Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8)
      Target: x86_64-apple-macosx10.9

      % xcodebuild -version
      Xcode 9.0
      Build version 9M136h

      Description

      When using from: "major.minor.patch" to specify a version constraint, the package manager incorrectly resolves prerelease tags from the next major version as compatible with the current major version.

      Sample project: https://github.com/sharplet/swiftpm-prerelease-bug

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sharplet Adam Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: