bbc/mozart-api-common

Name: mozart-api-common

Owner: BBC

Description: Shared Go packages used by Mozart

Created: 2015-09-23 15:11:48.0

Updated: 2016-11-22 16:59:47.0

Pushed: 2016-06-07 12:56:23.0

Homepage:

Size: 328

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

mozart-api-common

This repository contains packages that are used by both mozart-config-api and mozart-template-api.

They can be imported using import statements:

rt (
"github.com/bbc/mozart-api-common/caching"

Then, as with other dependencies, they are vendored into the local workspace by godep and the import statement is rewritten:

rt (
ithub.com/bbc/mozart-config-api/src/Godeps/_workspace/src/github.com/bbc/mozart-api-common/caching"

Development workflow

This section describes the workflow for making changes to packages in the mozart-api-common repo and pulling those changes into mozart-config-api and mozart-template-api.

  1. Make sure you have mozart-api-common, mozart-config-api and mozart-template checked out in the appropriate location in your $GOPATH.
  2. Create new branches in all three repos to hold your work.
  3. Rewrite the relevant import statements in the APIs to use the mozart-api-common in your $GOPATH, instead of in Godeps/, e.g. change import "github.com/bbc/mozart-template-api/src/Godeps/_workspace/src/github.com/bbc/mozart-api-common/caching" to import "github.com/bbc/mozart-api-common/caching".
  4. Make the required changes to the repos.
  5. Commit your changes to mozart-api-common.
  6. Commit the changes to the API repos.
  7. Push your commits up to GitHub and create pull requests for the branches in each of the repos.
  8. On :cake: approval merge your mozart-api-common changes into the master branch.
  9. Pull these changes into the API repos by running godep update github.com/bbc/mozart-api-common/... and godep save -r ./... from their src/ directories.
  10. Merge your changes to the API repos into the master branches.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.