Last active
February 25, 2019 15:52
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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