mirror of
https://github.com/gomods/athens
synced 2026-02-10 09:58:10 +00:00
* Use go1.11beta2 instead of vgo * Make the go 1.11 source directory configurable Don't error out if it's been cloned already * Add end-to-end (e2e) tests * Make sure the repo bin is on the path * Call the dev target from setup-dev-env * Use the same dev setup on travis and locally
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.11beta2"
|
|
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
|