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

[SwiftPM] [swift-build] Invalid module name error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Package Manager
    • Labels:
      None
    • Environment:
      • swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a.xctoolchain
      • OS X 10.11.4

      Description

      1. Run $ swift build --init library in "20160412" directory.
      2. Run $ swift build.
      3. The following error has occured.
        fatal error: Invalid module name: file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swiftpm/Sources/PackageType/c99name().swift, line 202
        

      It occurs when package's name or module's name consists of figures only.

      Even if I miss a naming rule for Swift 3.0, I think this error should been prevented when running $ swift build --init.

      For your information, it's not necessary for me to support a name consisted of figures only. I just tried.

        Attachments

          Activity

            People

            Assignee:
            kkoval Kostiantyn Koval
            Reporter:
            Martha Satoshi Hachiya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: