move towards using gopkg.in

Gustavo Niemeyer gustavo at niemeyer.net
Tue Jul 8 02:23:53 UTC 2014


On Mon, Jul 7, 2014 at 10:49 PM, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:
> On Mon, Jul 7, 2014 at 8:49 PM, David Cheney <david.cheney at canonical.com> wrote:
>> I don't want to introduce another thing to break CI, we already pull
>> from github which is bad enough, but going via gopkg.in introduces an
>> additional point of failure which can further reduce the already
>> bullet ridden credibility of our CI.
>
> Again, gopkg.in sits in a reliable deployment, with a provable track record.
>
>> I also don't want to start introducing versioned import paths into
>> Juju without serious discussion of how to prevent two different
>> versions of a package transitively.
>
>  go list -f '{{range .Deps}}{{printf "%s\n" .}}{{end}}' | grep gopkg.in
>     | sort -u | sed 's/\.v[0-9]\+$/\.vN/' | uniq -c | sed '/ 1 /d'

A bit faster and more correct (picks subpackages too):

go list -f '{{range .Deps}}{{printf "%s\n" .}}{{end}}'
    | sed -n  's,\(gopkg.in/.*\.v\)[0-9]\+.*$,\1N,p' | uniq -u -D


gustavo @ http://niemeyer.net



More information about the Juju-dev mailing list