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

SwiftPM should diagnose duplicate target dependency declarations and emit a warning

    XMLWordPrintable

    Details

      Description

      SwiftPM allows specifying same target dependency twice which might lead to weird stuff after the package loading stage. SwiftPM should diagnose this and emit a warning.

      Ex:

      let package = Package(
          name: "Foo",
          targets: [
              .target(name: "a"),
              .target(name: "b", dependencies: ["a", "a"]),
          ]
      )
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            aciid Ankit Aggarwal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: