Skip to content

Instantly share code, notes, and snippets.

@timruffles
Last active February 25, 2019 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timruffles/71c803fd9687fe54c78970d4da6884ea to your computer and use it in GitHub Desktop.
Save timruffles/71c803fd9687fe54c78970d4da6884ea to your computer and use it in GitHub Desktop.
Go dep - adding a fork via `source`. Useful when you want to use a private fork of a public repo for instance, without updating all package paths.
SOURCE="github.com/you/thing"
FORK="github.com/other/thing"
PACKAGE="some-package"
CONSTRAINT="aabbcc"
dep ensure -add ${SOURCE}/${PACKAGE}:${FORK}.git@${CONSTRAINT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment