2018-02-16 18:51:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-07-04 20:24:23 +00:00
|
|
|
GOMETALINTER_COMMIT=v2.0.6
|
2018-02-16 18:51:30 +00:00
|
|
|
|
|
|
|
install_gometalinter() {
|
|
|
|
echo "Installing gometalinter version $GOMETALINTER_COMMIT"
|
|
|
|
go get -d github.com/alecthomas/gometalinter
|
|
|
|
cd "$GOPATH/src/github.com/alecthomas/gometalinter"
|
|
|
|
git checkout -q "$GOMETALINTER_COMMIT"
|
2018-12-22 19:18:33 +00:00
|
|
|
go build -buildmode=pie -o "${PREFIX}/gometalinter" "github.com/alecthomas/gometalinter"
|
|
|
|
GOBIN=${PREFIX} "${PREFIX}/gometalinter" --install
|
2018-02-16 18:51:30 +00:00
|
|
|
}
|