Running godeps -u dependencies.tsv easily

Dimiter Naydenov dimiter.naydenov at canonical.com
Thu Aug 14 15:27:34 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Is it just me or others are also getting frustrated for the N-th time
that godeps doesn't fetch new revisions when needed, and you need to
manually go into each dependency's work dir, pull/fetch/update as
needed, then run godeps again.. You know the drill all too well I guess :)

Not anymore - check out these nifty scripts:

run-godeps: http://pastebin.ubuntu.com/8046143/
up-dep: http://paste.ubuntu.com/8046172/

Put both of these somewhere in $PATH, chmod +x both of them, modify
the *_DIR variables inside as needed.

Then, from anywhere, just run:
$ run-godeps

It will go to your juju-core WORK_DIR, run godeps, catch errors like
"missing import path" or "revision not found", do the right thing and
re-run godeps as many times as needed, until all dependencies are updated.

Sweet! :)

I hope somebody else finds it useful, and I'd appreciate feedback for it.

Cheers,
- -- 
Dimiter Naydenov <dimiter.naydenov at canonical.com>
juju-core team
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJT7NVmAAoJENzxV2TbLzHwlsEH/1GuYET5r/NvDQX7o9S3naEO
rPlmAM3+jeU3k3Pte50Gn6xpIY0whIjiDnrGE+UJaHaqFTQo1W6hkwTpdFyhioLA
lEaJmDD2yS6nilO1F/y0b4ny6SMSCCeBQxSic29gAJkNcRLRJSXUaAkMi3oyPaz5
N1aPout1xqOtb0ThZk9L4ZcUu4z5C83tck9E1VMGjFsgVJaNr/+5Gi1LCMWMe/aN
BijG5oGiMW3oDtgz5iU8tFbaB3K5FXbyfhq5Od0kTyX69RNRhDzXOlIvC5CDgmX8
L+dIc5G2oUKLh+D+IF/Y5vvVN/IkMXTtuo6tUs/0O0zKxCr4Y0Y1ajXzOWsIp7U=
=xSVd
-----END PGP SIGNATURE-----



More information about the Juju-dev mailing list