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
Size: 328
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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"
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
.
mozart-api-common
, mozart-config-api
and mozart-template
checked out in the appropriate location in your $GOPATH
.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"
.mozart-api-common
.mozart-api-common
changes into the master branch.godep update github.com/bbc/mozart-api-common/...
and godep save -r ./...
from their src/
directories.