mirror of
https://github.com/gomods/athens
synced 2026-02-11 15:08:09 +00:00
* Download: move cache location * beta3 * trying differnet repo * avoid go breaking stuff
22 lines
490 B
Bash
Executable File
22 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# install_dev_deps.sh
|
|
# Ensure that the tools needed to build locally are present
|
|
set -xeuo pipefail
|
|
|
|
go get github.com/golang/lint/golint
|
|
go get github.com/golang/dep/cmd/dep
|
|
|
|
GO_VERSION="go1.11beta3"
|
|
GO_SOURCE=${GO_SOURCE:=$(go env GOPATH)/src/golang.org/x/go}
|
|
mkdir -p $(dirname $GO_SOURCE)
|
|
if [[ ! -d $GO_SOURCE ]]; then
|
|
git clone https://go.googlesource.com/go $GO_SOURCE
|
|
fi
|
|
pushd $GO_SOURCE
|
|
git checkout $GO_VERSION
|
|
cd src && ./make.bash
|
|
popd
|
|
|
|
./scripts/get_buffalo.sh
|