<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">github.com/juju/juju/bar</a>"</div><div> coretesting "<a href="http://github.com/juju/juju/testing">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">github.com/juju/juju/testing</a>"<br></div></div><div><div> "<a href="http://github.com/juju/juju/bar">github.com/juju/juju/bar</a>"</div></div><div><br></div><div>(sorted by the local name)</div><div><br></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">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">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>