<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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 class=""><br class=""></div><div class="">The lockfile proposal is more for this kind of restriction, but this is not yet implemented (or approved).</div><div class=""><br class=""></div><div class="">However Kostiantyn’s suggestion should work, though you’ll need to specify it as an inclusive range of the provided Version() twice.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 21, 2016, at 2:36 AM, Kostiantyn Koval via swift-build-dev &lt;<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi JPMartha,</div><div class=""><br class=""></div>I think it should be possible to specify a dependency package with a specific&nbsp;pre-release identifier in Manifest and swiftpm should fetch that exact version.&nbsp;<div class="">Example:<br class=""><div class=""><pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', 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);" class="">Package(url: <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span><span style="color: rgb(0, 145, 0); white-space: pre-wrap;" class="">"https:</span><span class="code-comment" style="white-space: pre-wrap; color: rgb(128, 128, 128);">//<a href="http://github.com/ikesyo/Himotoki.git" class="">github.com/ikesyo/Himotoki.git</a></span><span class="pl-pds" style="box-sizing: border-box;">"</span></span>,
  versions: Version(<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179);">1</span>, <span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179);">0</span>, <span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179);">0</span>, prereleaseIdentifiers: <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">“</span>beta.1<span class="pl-pds" style="box-sizing: border-box;">”)</span></span></pre><div class=""><br class=""></div><div class="">The swiftPM should fetch a package with <b class="">v-1.0.0-beta-1&nbsp;</b>tag&nbsp;</div><div class=""><b class=""><br class=""></b><div class=""><blockquote type="cite" class=""><div class="">On 21 Mar 2016, at 06:43, Martha JP via swift-build-dev &lt;<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi, I'm JPMartha.</div><div class=""><br class=""></div><div class="">I had filed an issue of the Swift Package Manager first.</div><div class="">But, I should have heard your feedback on my opinion beforehand.</div><div class=""><br class=""></div><div class="">Please see the following:</div><div class=""><a href="https://bugs.swift.org/browse/SR-965" class="">https://bugs.swift.org/browse/SR-965</a></div><div class=""><br class=""></div><div class="">I think it's unexpected behavior.</div><div class="">I'm curious to hear your feedback!</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">JPMartha</div></div>
_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" class="">https://lists.swift.org/mailman/listinfo/swift-build-dev</a><br class=""></div></blockquote></div><br class=""></div></div></div></div>_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-build-dev<br class=""></div></blockquote></div><br class=""></div></body></html>