This file contains 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
#!/bin/bash | |
# | |
# Due to a bug in Go, you can't `go get` a private Bitbucket repository | |
# (issue #5375, linked below). This means you can't `go get ./...` ANY project | |
# that might depend on a private Bitbucket repository. | |
# | |
# This script works around it by detecting Bitbucket imports and using | |
# `git` directly to clone into it. This will not work if you use private | |
# Mercurial repositories on Bitbucket. | |
# |