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

[SwiftPM] Don't error if a directory contains only ignored files

    XMLWordPrintable

    Details

      Description

      When switching branches, it is easy for a local directory to end up with stray temporary files. SwiftPM should ignore directories only containing files it would otherwise ignore when trying to issue an error like this:

      error: the module at /Volumes/Data/ddunbar/public/swift-project/swiftpm/Tests/Commands does not contain any source files
      fix: either remove the module folder, or add a source file to the module
      --- bootstrap: error: build failed with exit status 1
      $ ls Tests/Commands/
      BuildToolTests.swift~	PackageToolTests.swift~	TestToolTests.swift~	XCTestManifests.swift~
      

        Attachments

          Activity

            People

            Assignee:
            ddunbar Daniel Dunbar
            Reporter:
            ddunbar Daniel Dunbar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: