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

Can't generate tests for Swift 5.0 on Linux: generate-linuxmain is deprecated and a no-op

    XMLWordPrintable

    Details

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

      Description

      swift test --generate-linuxmain recently started emitting a warning that it is deprecated and it no longer generates the test manifests for Linux.

      Deprecating it absolutely makes sense given that test discovery has been available on Linux since 5.1.

      However, removing the functionality to generate the manifests is awkward for library maintainers who still support Swift 5.0 on Linux: our options at the moment (as far as I see) are to keep an old enough toolchain around just for generating manifests or switch to scripts which parse the test code to generate manifests; neither of which are great solutions.

      Ideally the functionality would be restored (while keeping the deprecation warning) until the next major version of Swift.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gbrntt George Barnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: