Skip to content

Update Launchpad Dependency

Jesse Meek edited this page Jun 3, 2015 · 3 revisions

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

(make changes)

  • 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.

Clone this wiki locally