github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/hack/dockerfile/install/tomlv.installer (about)

     1  #!/bin/sh
     2  
     3  # When updating TOMLV_COMMIT, consider updating github.com/BurntSushi/toml
     4  # in vendor.conf accordingly
     5  : ${TOMLV_COMMIT:=3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005} # v0.3.1
     6  
     7  install_tomlv() {
     8  	echo "Install tomlv version $TOMLV_COMMIT"
     9  	git clone https://github.com/BurntSushi/toml.git "$GOPATH/src/github.com/BurntSushi/toml"
    10  	cd "$GOPATH/src/github.com/BurntSushi/toml" && git checkout -q "$TOMLV_COMMIT"
    11  	go build -v -buildmode=pie -o "${PREFIX}/tomlv" "github.com/BurntSushi/toml/cmd/tomlv"
    12  }