Update Launchpad Dependency
Jesse Meek edited this page Jun 23, 2015
·
3 revisions
Pages 44
- Home
- API best practices
- Azure provider design implementation notes
- Blocking bugs
- Bootstrap Internals (WIP)
- Boring Techniques
- Bug fixes and patching
- CI Tests
- Code Review Checklists
- Containers
- Creating New Repos
- Debugging Juju
- Debugging Juju Misc Topics Pointers
- Debugging Races
- Diagnosing MongoDB Performance
- Faster LXD
- Feature Documentation
- Getting Mongo dump
- Guidelines for writing workers
- Hacking upload tools
- howto: implement effective config structs
- Implementing environment providers
- Incomplete Transactions and MgoPurge
- Interactive Commands
- Intermittent failures
- Juju Logging
- Juju Scripts
- Juju Storage (WIP)
- Juju User Documentation
- KVM instance creation
- Login into MongoDB
- Managing complexity
- mgo txn example
- MgoPurgeTool
- Misc Topics
- Mongo Issues
- MongoDB and Consistency
- pprof facility
- Reviewboard Tips and Tricks
- Stop Start Machine Agent
- Stress Test
- Triaging Bugs
- Update Launchpad Dependency
- Writing Unit Tests
- Show 29 more pages…
Navigation
Testing
Releases
Documentation
Development
- READ BEFORE CODING
- Blocking bugs process
- Bug fixes and patching
- Contributing
- Code Review Checklists
- Creating New Repos
-
MongoDB and Consistency
- [mgo/txn Example] (https://github.com/juju/juju/wiki/mgo-txn-example)
- Scripts
- Update Launchpad Dependency
- Writing workers
- Reviewboard Tips
Debugging and QA
- Debugging Juju
- [Faster LXD] (https://github.com/juju/juju/wiki/Faster-LXD)
Clone this wiki locally
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/gomaasapibzr branch . /path/to/your/branches/nameofbranchcd /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/gomaasapibzr merge ~/branches/nameofbranchbzr 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.