mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
10 lines
308 B
Text
10 lines
308 B
Text
|
#!/bin/sh
|
||
|
|
||
|
: "${GOTOML_VERSION:=v1.8.1}"
|
||
|
|
||
|
install_tomll() {
|
||
|
echo "Install go-toml version ${GOTOML_VERSION}"
|
||
|
# TODO remove GO111MODULE=on and change to 'go install -mod=mod ...' once we're at go 1.16+
|
||
|
GO111MODULE=on GOBIN="${PREFIX}" go get -v "github.com/pelletier/go-toml/cmd/tomll@${GOTOML_VERSION}"
|
||
|
}
|