<div dir="ltr"><div>Hi, Daniel</div><div><br></div><div>Thank you for the quick reply.</div><div><br></div><div>I'm really sorry I couldn't explain it well.</div><div>If I had to say, I think it is the latter (just whether we should diagnose it earlier).</div><div><br></div><div><br></div><div># In other words</div><div><br></div><div>I don't think this name should be valid. (e.g. "20160412")</div><div>Just I'd like to know why this name is invalid.</div><div><br></div><div><br></div><div>> It is an invalid "C99 Extended Identifier", which is the technical specification these names need to follow (a digit is not a valid initial character).</div><div><br></div><div>Thanks for telling me. It is what I'd like to know.</div><div><br></div><div><br></div><div># Details</div><div><br></div><div>I had created a package named "20160412" with `$ swift build --init`.</div><div>It had been succeed, but an error had occured when running '$ swift build'.</div><div><br></div><div>I had understood it needs to follow called "C99", but I didn't know about "C99". Also, I didn't know why this name is invalid.</div><div>I don't think it should be valid.</div><div><br></div><div><br></div><div># Sammary</div><div><br></div><div>"20160412" is not valid because a digit is not a valid initial character.</div><div>"t20160412" is valid name.</div><div>"2t0160412" is not valid, but it has been buildable. Because it has renamed "t0160412".</div><div><br></div><div><br></div><div><div style="font-size:14px">Best regards,</div><div style="font-size:14px">JPMartha</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-15 0:54 GMT+09:00 Daniel Dunbar <span dir="ltr"><<a href="mailto:daniel_dunbar@apple.com" target="_blank">daniel_dunbar@apple.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi JPMartha,<div><br></div><div>I am not 100% sure what your question is. Is it whether this name should be valid, or just whether we should diagnose it earlier?</div><div><br></div><div>It is an invalid "C99 Extended Identifier", which is the technical specification these names need to follow (a digit is not a valid initial character).</div><div><br></div><div> - Daniel</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Apr 13, 2016, at 10:56 PM, Martha JP via swift-build-dev <<a href="mailto:swift-build-dev@swift.org" target="_blank">swift-build-dev@swift.org</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div>Hi, I'm JPMartha.</div><div><br></div><div>Can I ask about module name?</div><div><br></div><div>The following error has occured when package's name or module's name consists of figures only. Is it invalid as the error message says?</div><div><br></div><div>Error:</div><div>```</div><div>fatal error: Invalid module name: file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swiftpm/Sources/PackageType/c99name().swift, line 202</div><div>```</div><div><br></div><div>I saw `Sources/PackageType/c99name().swift`, then I found the following document.</div><div><br></div><div>/**</div><div> Removes characters from name that are invalid in C99 module-names.</div><div>*/</div><div><br></div><div>So, I checked C99. Also, I saw the API Design Guideline and the swift-build-dev Archives.</div><div>But I'm not sure that it is invalid.</div><div><br></div><div>Even though I miss a naming rule, I think this error should been prevented beforehand.<br></div><div>So, I reported <a href="https://bugs.swift.org/browse/SR-1224" target="_blank">https://bugs.swift.org/browse/SR-1224</a>.</div><div><br></div><div>Best regards,</div><div>JPMartha</div></div></div></div>
_______________________________________________<br>swift-build-dev mailing list<br><a href="mailto:swift-build-dev@swift.org" target="_blank">swift-build-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" target="_blank">https://lists.swift.org/mailman/listinfo/swift-build-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>