add go modules file and start running go 1.11 style builds (#7354)

This commit is contained in:
Sidhartha Mani
2019-03-19 13:50:59 -07:00
committed by Harshavardhana
parent 8a77a298f2
commit 6bc0de2a75
7 changed files with 878 additions and 13 deletions

View File

@@ -45,8 +45,6 @@ export MINT_RUN_SECURITY_DIR="$MINT_ROOT_DIR/run/security"
export MINT_MODE="full"
export WGET="wget --quiet --no-check-certificate"
go get github.com/go-ini/ini
./create-data-files.sh
./preinstall.sh

View File

@@ -319,11 +319,10 @@ function __init__()
mkdir -p "$MINIO_CONFIG_DIR"
mkdir -p "$MINT_DATA_DIR"
if ! go get -u github.com/minio/mc; then
echo "failed to download https://github.com/minio/mc"
exit 1
fi
/bin/cp -a "$(go env GOPATH)"/bin/mc "$WORK_DIR/mc"
git clone https://github.com/minio/mc
cd mc
go build
/bin/cp -a ./mc "$WORK_DIR/mc"
chmod a+x "$WORK_DIR/mc"