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

Package Manager crashes about system library hint for yum

    XMLWordPrintable

    Details

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

      Description

      The Swift Package Manager crashes with a fatal error, when the `.yum` provider for a system library is used.

      Here is a minimal example:

      // swift-tools-version:5.3
      import PackageDescription
      let package = Package(name: "Bug", targets: [
          .systemLibrary(
              name: "Crash-Min-Example",
              providers: [.yum(["just-anything-here-crashes"])]
          )
      ])
      

      Which leads to the following output when running `swift package resolve`:

      Fatal error: file PackageLoading/PackageDescription4Loader.swift, line 223
      [1]    98803 illegal hardware instruction  swift package resolve
      

      I assume the error thrown is here:
      https://github.com/apple/swift-package-manager/blob/main/Sources/PackageLoading/PackageDescription4Loader.swift#L219

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ChaosCoder Andreas Ganske
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: