Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Build environment

Gerard Braad edited this page Dec 2, 2016 · 3 revisions

Setup

#/bin/sh
VERSION=1.7.1
OS=linux
ARCH=amd64
wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz
mkdir -p /opt/go
tar --directory=/opt/go -xvf go$VERSION.$OS-$ARCH.tar.gz
export PATH=$PATH:/opt/go/bin

GLIDE_OS_ARCH=`go env GOHOSTOS`-`go env GOHOSTARCH`
GLIDE_TAG=$(curl -s https://glide.sh/version)
GLIDE_LATEST_RELEASE_URL="https://github.com/Masterminds/glide/releases/download/${GLIDE_TAG}/glide-${GLIDE_TAG}-${GLIDE_OS_ARCH}.tar.gz"
wget ${GLIDE_LATEST_RELEASE_URL} -O /tmp/glide.tar.gz
mkdir -p /opt/glide
tar --directory=/opt/glide -xvf /tmp/glide.tar.gz
export PATH=$PATH:/opt/glide/${GLIDE_OS_ARCH}

GOPATH=$PWD/_gopath
glide install -v
make
Clone this wiki locally