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

SwiftPM lacks a friendly error message when run in bad directory.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Package Manager
    • Labels:
      None
    • Environment:
      1. Swift Nightly Docker Image #
      2. Tag: swift-DEVELOPMENT-SNAPSHOT-2021-03-25-a #

      Description

      I foolishly tried creating a swift package in the root of my file system. Yes this is obviously a stupid thing to do but the error message could have been more helpful than `Illegal instruction`

      root@d902e6e703ca:/# swift package init --type executable
      Creating executable package: /
      Creating Package.swift
      Creating README.md
      Creating .gitignore
      Creating Sources/
      Creating Sources/main.swift
      Creating Tests/
      Illegal instruction

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            pp_adams Peter Adams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: