<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="">Ensure there are no uncommitted changes and then tag a new version in each local repository.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 6, 2016, at 11:03 PM, qibo_cn--- via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class=""><br class="">
thank you very much.<br class="">
when i excu "swift build"in deckofplayingcard.<br class="">
error:the dependency graph could not be satisfied(somedir/fisheryates).did i miss something?</p><p dir="ltr" class="">Best<br class="">
Bob<br class=""></p>
<blockquote type="cite" class=""><p dir="ltr" class="">发件人: Ankit Agarwal<br class="">
已发送: 1 月 7 日 星期四 下午 1:51<br class="">
主题: Re: [swift-dev] how to write package.swift if i want to use dependency file in local?<br class="">
收件人: <a href="mailto:qibo_cn@outlook.com" class="">qibo_cn@outlook.com</a><br class="">
抄送: <a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>, <a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""></p><p dir="ltr" class="">I am assuming by downloaded you meant Downloaded the zip from github. <br class=""></p><p dir="ltr" class="">Suppose you have all three downloaded side by side <br class=""></p><p dir="ltr" class="">some-dir </p><p dir="ltr" class="">├── PlayingCard&nbsp; </p><p dir="ltr" class="">├── FisherYates </p><p dir="ltr" class="">└── DeckOfPlayingCards <br class=""></p><p dir="ltr" class="">since you downloaded as a zip and not cloned these directories will not be under git version control anymore. </p><p dir="ltr" class="">place PlayCard and FisherYates under git and add tag to them as they are dependencies to DeckOfPlayingCards. </p><p dir="ltr" class="">DeckOfPlayingCards need not be under git to be built. <br class=""></p><p dir="ltr" class="">$ cd PlayingCard </p><p dir="ltr" class="">$ git init &amp;&amp; git add . &amp;&amp; git commit -m "init" &amp;&amp; git tag 1.0.0 </p><div class="">&nbsp; <br class="webkit-block-placeholder"></div><p dir="ltr" class="">$ cd ../FisherYates </p><p dir="ltr" class="">$ git init &amp;&amp; git add . &amp;&amp; git commit -m "init" &amp;&amp; git tag 1.0.0 <br class=""></p><p dir="ltr" class="">$ cd ../DeckOfPlayingCards <br class=""></p><p dir="ltr" class="">edit Package.swift and change&nbsp; <br class=""></p><p dir="ltr" class="">` <a href="https://github.com/apple/example-package-fisheryates.git`" class="">https://github.com/apple/example-package-fisheryates.git`</a> to `../FisherYates` </p><p dir="ltr" class="">` <a href="https://github.com/apple/example-package-playingcard.git`" class="">https://github.com/apple/example-package-playingcard.git`</a> to `../PlayingCar <br class=""></p><p dir="ltr" class="">$ swift build <br class=""></p><p dir="ltr" class="">done. <br class=""><br class=""></p><p dir="ltr" class="">PS: This should be in swift-users or&nbsp;swift-build-dev <br class=""><br class=""></p><p dir="ltr" class="">On Thu, Jan 7, 2016 at 9:58 AM, qibo_cn--- via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote: </p>
</blockquote>
<blockquote type="cite" class=""><p dir="ltr" class="">hi all<br class="">
&nbsp; i want to build dealer project in swift package-manager.because my ubuntu is not supported to connect github.so i dowload playingcard,fisheryates,deckofplaycards projects in local.build playingcatd and fisheryates successfully. how i shuold change the package.swift in deckofplaycards, to duild this project.</p><p dir="ltr" class="">Best<br class="">
Bob<br class=""></p><p dir="ltr" class=""> <br class="">
_______________________________________________ <br class="">
swift-dev mailing list <br class="">
<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a> <br class="">
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a> <br class="">
</p>
</blockquote>
<blockquote type="cite" class=""><p dir="ltr" class=""><br class=""><br class=""></p><p dir="ltr" class="">-- </p><p dir="ltr" class="">Ankit <br class=""><br class=""></p>
</blockquote>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=cbMbdH1LnH6O78Q-2BHw3jtU8ikibH470Fh9meAJKpwSp-2BkWcsCij-2FzFwG-2BuZ-2F5ZSf7Of1mBd5pXWN2OG-2BBGzKBjPl-2F5oCUjacJv9ig6QgFmq5lZ95YquvfbjjC06rlzaf2YtJK43Yy351hXRyWG1wUJr3yUg2J6OvZ8opOYrUu6Ih6ZT4sAODZv7mkGRExvUlz8yYyCCDk3i-2BHeQL0FiLd8MYm1xY3KYdzPVSN1B6WDI-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>