<div dir="ltr"><div>Hi, Daniel</div><div><br></div><div>Thank you for the quick reply.</div><div><br></div><div>I&#39;m really sorry I couldn&#39;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&#39;t think this name should be valid. (e.g. &quot;20160412&quot;)</div><div>Just I&#39;d like to know why this name is invalid.</div><div><br></div><div><br></div><div>&gt; It is an invalid &quot;C99 Extended Identifier&quot;, 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&#39;d like to know.</div><div><br></div><div><br></div><div># Details</div><div><br></div><div>I had created a package named &quot;20160412&quot; with `$ swift build --init`.</div><div>It had been succeed, but an error had occured when running &#39;$ swift build&#39;.</div><div><br></div><div>I had understood it needs to follow called &quot;C99&quot;, but I didn&#39;t know about &quot;C99&quot;. Also, I didn&#39;t know why this name is invalid.</div><div>I don&#39;t think it should be valid.</div><div><br></div><div><br></div><div># Sammary</div><div><br></div><div>&quot;20160412&quot; is not valid because a digit is not a valid initial character.</div><div>&quot;t20160412&quot; is valid name.</div><div>&quot;2t0160412&quot; is not valid, but it has been buildable. Because it has renamed &quot;t0160412&quot;.</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">&lt;<a href="mailto:daniel_dunbar@apple.com" target="_blank">daniel_dunbar@apple.com</a>&gt;</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 &quot;C99 Extended Identifier&quot;, 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 &lt;<a href="mailto:swift-build-dev@swift.org" target="_blank">swift-build-dev@swift.org</a>&gt; wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div>Hi, I&#39;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&#39;s name or module&#39;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&#39;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>