So there are 2 changes that I encountered with upgrading go to 1.4.2:

1) They changed how they sort import paths. Currently all our imports are:

 "github.com/juju/juju/bar"
 coretesting "github.com/juju/juju/testing"
(sorted by the import string)

It wants to sort them as:

 coretesting "github.com/juju/juju/testing"
 "github.com/juju/juju/bar"

(sorted by the local name)


2) It no longer works if you have a symlink in your PWD
Because of the need for exact paths, I have a link from $HOME/jc =>
$HOME/dev/go/src/github.com/juju/juju
However, if I do "go fmt" it now complains that:
stat ../../../dev/go/src/github.com/juju/juju/worker/uniter/deployer.go: no
such file or directory

(it seems to be using pwd -P and then using relative paths to that)

Anyone know why it would need to do that?

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.



Does anyone using go 1.4 have some tricks to work around these problems?

John
=:->
-- 
Juju-dev mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to