<div dir="ltr"><div>Thank you for taking me time to reply!</div><div><br></div><div>&gt; Kostiantyn’s suggestion should work, though you’ll need to specify it as an inclusive range of the provided Version() twice.</div><div><br></div><div>An error has occurred as Kostiantyn’s suggestion is, I arranged it just a little as Example 1.</div><div>And then I think Max’s suggestion is Example 2.</div><div>But in any case, the swiftPM fetched a package with 2.0.0-beta.2 tag.</div><div><br></div><div># Example 1</div><div>.Package(url: &quot;<a href="https://github.com/ikesyo/Himotoki.git">https://github.com/ikesyo/Himotoki.git</a>&quot;,</div><div>    Version(2, 0, 0, prereleaseIdentifiers: [&quot;beta.1&quot;]))</div><div>    </div><div># Example 2</div><div>.Package(url: &quot;<a href="https://github.com/ikesyo/Himotoki.git">https://github.com/ikesyo/Himotoki.git</a>&quot;,</div><div>    versions: Version(2, 0, 0, prereleaseIdentifiers: [&quot;beta.1&quot;])...Version(2, 0, 0, prereleaseIdentifiers: [&quot;beta.1&quot;]))</div><div><br></div><div>By the way, the version of the package is required to follow Semantic Versioning (SemVer) conventions, therefore we must be determined by comparing each dot separated identifier.</div><div><br></div><div>- <a href="http://semver.org/">http://semver.org/</a></div><div>- &quot;Precedence for two pre-release versions with the same major, minor, and patch version MUST be determined by comparing each dot separated identifier from left to right until a difference is found&quot;</div><div><br></div><div>So, I think the specifying as Example 3 is better.</div><div>But the swiftPM fetched a package with 2.0.0-beta.2 tag.</div><div><br></div><div># Example 3</div><div>Package(url: &quot;<a href="https://github.com/ikesyo/Himotoki.git">https://github.com/ikesyo/Himotoki.git</a>&quot;,</div><div>    versions: Version(2, 0, 0, prereleaseIdentifiers: [&quot;beta&quot;, &quot;1&quot;])...Version(2, 0, 0, prereleaseIdentifiers: [&quot;beta&quot;, &quot;1&quot;]))</div><div><br></div><div>As it turned out, Example 4 is expected behavior.</div><div>The swiftPM fetched a package with 2.0.0-beta.1 tag.</div><div><br></div><div># Example 4</div><div>.Package(url: &quot;<a href="https://github.com/ikesyo/Himotoki.git">https://github.com/ikesyo/Himotoki.git</a>&quot;,</div><div>    versions: Version(2, 0, 0, prereleaseIdentifiers: [&quot;beta&quot;, &quot;1&quot;])..&lt;Version(2, 0, 0, prereleaseIdentifiers: [&quot;beta&quot;, &quot;2&quot;]))</div><div><br></div><div><br></div><div># Consideration for Pre-release Versions</div><div><br></div><div>I understand what Max means.</div><div><br></div><div>However, we need to specify a dependency package with a specific pre-release identifier until the stable version is released in our development environment.</div><div>In fact, we had needed Xcode 7.3-beta version before Xcode 7.3 and Swift 2.2 were released.</div><div><br></div><div>I think we don&#39;t specify single version forever, but it should be possible to specify a dependency package with a specific pre-release identifier in Manifest and the swiftPM should fetch that exact version temporarily.</div><div><br></div><div><br></div><div>By the way, it seems the same thing has discussed here.</div><div>- <a href="https://github.com/apple/swift-package-manager/pull/179">https://github.com/apple/swift-package-manager/pull/179</a></div><div>I hadn&#39;t watched it thorouoghly enough, I&#39;m sorry.</div><div><br></div><div>Thanks for reading such a long mail.</div><div><br></div><div>Best regards,</div><div>JPMartha</div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-22 3:10 GMT+09:00 Max Howell <span dir="ltr">&lt;<a href="mailto:max.howell@apple.com" target="_blank">max.howell@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">Strictly, we don’t really want people specifying such exact version requirements in Package.swift, since it would be easy to forget and then be trapped on a single version forever despite updates being available.<div><br></div><div>The lockfile proposal is more for this kind of restriction, but this is not yet implemented (or approved).</div><div><br></div><div>However Kostiantyn’s suggestion should work, though you’ll need to specify it as an inclusive range of the provided Version() twice.</div><div><div class="h5"><div><br><div><blockquote type="cite"><div>On Mar 21, 2016, at 2:36 AM, Kostiantyn Koval 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 style="word-wrap:break-word"><div>Hi JPMartha,</div><div><br></div>I think it should be possible to specify a dependency package with a specific pre-release identifier in Manifest and swiftpm should fetch that exact version. <div>Example:<br><div><pre style="overflow:auto;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;margin-top:0px;margin-bottom:0px;line-height:1.45;padding:16px;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;word-break:normal;color:rgb(51,51,51)">Package(url: <span style="color:rgb(24,54,145)"><span>&quot;</span><span style="color:rgb(0,145,0);white-space:pre-wrap">&quot;https:</span><span style="white-space:pre-wrap;color:rgb(128,128,128)">//<a href="http://github.com/ikesyo/Himotoki.git" target="_blank">github.com/ikesyo/Himotoki.git</a></span><span>&quot;</span></span>,
  versions: Version(<span style="color:rgb(0,134,179)">1</span>, <span style="color:rgb(0,134,179)">0</span>, <span style="color:rgb(0,134,179)">0</span>, prereleaseIdentifiers: <span style="color:rgb(24,54,145)"><span>“</span>beta.1<span>”)</span></span></pre><div><br></div><div>The swiftPM should fetch a package with <b>v-1.0.0-beta-1 </b>tag </div><div><b><br></b><div><blockquote type="cite"><div>On 21 Mar 2016, at 06:43, 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 dir="ltr"><div>Hi, I&#39;m JPMartha.</div><div><br></div><div>I had filed an issue of the Swift Package Manager first.</div><div>But, I should have heard your feedback on my opinion beforehand.</div><div><br></div><div>Please see the following:</div><div><a href="https://bugs.swift.org/browse/SR-965" target="_blank">https://bugs.swift.org/browse/SR-965</a></div><div><br></div><div>I think it&#39;s unexpected behavior.</div><div>I&#39;m curious to hear your feedback!</div><div><br></div><div>Best regards,</div><div>JPMartha</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></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></div></div></blockquote></div><br></div></div>