<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Ben,<br><br></div><div><br>On Jun 23, 2016, at 9:17 PM, Ben Coman &lt;<a href="mailto:btc@openinworld.com">btc@openinworld.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span></span></div></blockquote><blockquote type="cite"><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 11:26 AM, Ben Coman <span dir="ltr">&lt;<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I just did my first vm build from git...<div><br></div><div>&nbsp; $ git checkout -b firstbuild Cog</div><div>&nbsp; $ cd image</div><div>&nbsp; $ ./buildspurtrunkvmmakerimage.sh</div><div>&nbsp; $&nbsp;cd build.linux32x86/squeak.cog.spur/build</div><div>&nbsp; $ ./mvm&nbsp;</div><div>Which completes okay, but reports...</div><div>&nbsp; Libraries have been installed in:</div><div>&nbsp; &nbsp;/home/ben/Repos/OpenSmalltalk/vm/products/cogspurlinuxht/lib/squeak/5.0-201606221719-btc/condense-gitignore</div><div><br></div><div>but condense-gitignore is not the current branch, but a previous branch I worked on where I didn't even do a build&nbsp;(I'm reasonably sure, but maybe I forget). &nbsp;</div><div><br></div><div>&nbsp; $ git branch</div><div>[snip]</div><div><div>* firstbuild</div><div>&nbsp; btc/condense-gitignore<br></div><div><br></div></div><div>I poked around and found the message comes from &nbsp; ./platforms/unix/config/ltmain.sh</div><div>but I don't see any git commands there to determine the branch, so it seems the branch must be passed to ltmain from somewhere else??</div><div><br></div><div>cheers -ben</div><div><br></div></div>
</blockquote></div><br></div><div class="gmail_extra">I was sure I had run&nbsp;scripts/updateSCCSVersions before, but running it again fixed the problem</div><div class="gmail_extra">&nbsp; $ cd&nbsp;~/Repos/OpenSmalltalk/vm&nbsp;</div><div class="gmail_extra">&nbsp; $ rm -r *</div><div class="gmail_extra">&nbsp; $ git checkout -b firstbuild Cog</div><div class="gmail_extra">&nbsp; $ git reset --hard HEAD &nbsp; # not sure if this is the best command to use here</div><div class="gmail_extra">&nbsp; $ scripts/updateSCCSVersions</div><div class="gmail_extra">&nbsp; $&nbsp;cd build.linux32x86/squeak.cog.spur/build</div><div class="gmail_extra">&nbsp; $ ./mvm</div><div class="gmail_extra">clean? y&nbsp;</div><div class="gmail_extra"><div class="gmail_extra"><div class="gmail_extra">Libraries have been installed in:</div><div class="gmail_extra">&nbsp; &nbsp;/home/ben/Repos/OpenSmalltalk/vm/products/cogspurlinuxht/lib/squeak/5.0-201606230315-firstbuild</div><div><br></div><div>However...</div></div></div><div class="gmail_extra"><div>&nbsp; $ git checkout -b secondbuild Cog</div><div>&nbsp; $ /mvm</div><div class="gmail_extra">clean? y&nbsp;</div><div class="gmail_extra"><div class="gmail_extra"><div class="gmail_extra">Libraries have been installed in:</div><div class="gmail_extra">&nbsp; &nbsp;/home/ben/Repos/OpenSmalltalk/vm/products/cogspurlinuxht/lib/squeak/5.0-201606230315-firstbuild</div><div class="gmail_extra">&nbsp;</div><div class="gmail_extra">&nbsp; $ ../../../scripts/updateSCCSVersions&nbsp;</div><div>&nbsp; $ ./mvm</div><div>clean? y</div><div>Libraries have been installed in:</div><div>&nbsp; &nbsp;/home/ben/Repos/OpenSmalltalk/vm/products/cogspurlinuxht/lib/squeak/5.0-201606182358-secondbuild</div><div><br></div><div>So it seems updateSCCSVersions needs to be run *every* time I change branch before running ./mvm.</div><div>Should it be added to mvm?</div></div></div></div></div></div></blockquote><div><br></div>mvm is simply a convenience build script and there are lots of them. &nbsp;<span style="background-color: rgba(255, 255, 255, 0);">updateSCCSVersions is to do with updating the state of the checkout if the repository, so it and its effects belong in the realm of hit. &nbsp;Can we not add git hooks to run it after every update and merge? &nbsp;That seems to me both the right time to run it and to be the right universe of discourse.</span><div><br></div><div>Tim, Fabio is this possible?</div><div><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra"><div class="gmail_extra"><div><br></div><div>cheers -ben</div></div></div></div></div>
</div></blockquote></div></body></html>