mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-08 14:55:42 +00:00
10 lines
392 B
Bash
Executable File
10 lines
392 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
go mod download golang.org/x/tools@latest
|
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.6.1
|
|
arch="$(uname -m)"
|
|
if [ "$arch" = "ppc64le" ]; then
|
|
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
|
else
|
|
curl -sSfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s
|
|
fi |