mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
add go modules file and start running go 1.11 style builds (#7354)
This commit is contained in:
committed by
Harshavardhana
parent
8a77a298f2
commit
6bc0de2a75
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user