<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 10, 2015 at 4:52 PM, John Meinel <span dir="ltr"><<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So there are 2 changes that I encountered with upgrading go to 1.4.2:<div><br></div><div>1) They changed how they sort import paths. Currently all our imports are:<br><br></div><div> "<a href="http://github.com/juju/juju/bar" target="_blank">github.com/juju/juju/bar</a>"</div><div> coretesting "<a href="http://github.com/juju/juju/testing" target="_blank">github.com/juju/juju/testing</a>"</div><div>(sorted by the import string)</div><div><br></div><div>It wants to sort them as:</div><div><br></div><div><div> coretesting "<a href="http://github.com/juju/juju/testing" target="_blank">github.com/juju/juju/testing</a>"<br></div></div><div><div> "<a href="http://github.com/juju/juju/bar" target="_blank">github.com/juju/juju/bar</a>"</div></div><div><br></div><div>(sorted by the local name)</div><div><br></div></div></blockquote><div><br></div><div>I could be wrong about this one, I was frustrated by (2) and thought the diff was a change in behavior. It was probably just something I committed without running go fmt before.</div><div><br></div><div>John</div><div>=:-></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>2) It no longer works if you have a symlink in your PWD</div><div>Because of the need for exact paths, I have a link from $HOME/jc => $HOME/dev/go/src/<a href="http://github.com/juju/juju" target="_blank">github.com/juju/juju</a></div><div>However, if I do "go fmt" it now complains that:</div><div>stat ../../../dev/go/src/<a href="http://github.com/juju/juju/worker/uniter/deployer.go" target="_blank">github.com/juju/juju/worker/uniter/deployer.go</a>: no such file or directory</div><div><br></div><div>(it seems to be using pwd -P and then using relative paths to that)</div><div><br></div><div>Anyone know why it would need to do that?</div><div><br></div><div>I can work around it with "cd jc; cd `pwd -P`" or some other form so I don't have to type the long form each time.</div><div><br></div><div><br></div><div><br></div><div>Does anyone using go 1.4 have some tricks to work around these problems?</div><div><br>John</div><div>=:-></div><div><br></div></div>
</blockquote></div><br></div></div>