diff --git a/docker/test/run.sh b/docker/test/run.sh index e41a529c51d..27b9cd47348 100755 --- a/docker/test/run.sh +++ b/docker/test/run.sh @@ -175,6 +175,10 @@ bashcmd=$(append_cmd "$bashcmd" "export VTROOT=/vt/src/vitess.io/vitess") bashcmd=$(append_cmd "$bashcmd" "export VTDATAROOT=/vt/vtdataroot") bashcmd=$(append_cmd "$bashcmd" "export EXTRA_BIN=/tmp/bin") +# Setup git for private go modules +bashcmd=$(append_cmd "$bashcmd" "export GOPRIVATE=$GOPRIVATE") +bashcmd=$(append_cmd "$bashcmd" "git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/") + bashcmd=$(append_cmd "$bashcmd" "mkdir -p dist; mkdir -p bin; mkdir -p lib; mkdir -p vthook") bashcmd=$(append_cmd "$bashcmd" "rm -rf /vt/dist; ln -s /vt/src/vitess.io/vitess/dist /vt/dist") bashcmd=$(append_cmd "$bashcmd" "rm -rf /vt/bin; ln -s /vt/src/vitess.io/vitess/bin /vt/bin")