Update Launchpad Dependency - juju/juju GitHub Wiki
Scenario: You need to update a dependency hosted on Launchpad. This example uses gomaasapi:
Updating the LP package
Branch trunk
cd $GOPATH/src/launchpad.net/gomaasapi
bzr branch . /path/to/your/branches/nameofbranch
cd /path/to/your/branches/nameofbranch
Edit
If you made your changes to trunk before branching, you can pull those changes across like so:
bzr merge --uncommitted /trunk/branch/directory
. Once you are ready to propose:
bzr commit -m"commit message"
bzr push lp:~<lp username>/gomaasapi/nameofbranch
- View your branch at
https://code.launchpad.net/~<lp username>/gomaasapi/nameofbranch
- Click the button on this page to propose the branch for merging into trunk.
- Wait for review approval
Merge back into trunk
cd ~/go/src/launchpad.net/gomaasapi
bzr merge ~/branches/nameofbranch
bzr push lp:gomaasapi
- Update branch status to "merged" on lp website
Updating Juju to use the new revision
Get revision ID and number to update dependencies.tsv
- Get the revision number:
bzr revno
- Then get the revision id:
http://bazaar.launchpad.net/~juju/gomaasapi/trunk/revision/<revision number>
Be sure to run godeps -u dependencies.tsv and dependenciesTest suite after you've updated the file.