diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0db35bae..18711c7b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '^1.20' + go-version: '1.25.5' id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7823b62..503d41a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v6 - uses: actions/setup-go@v5 with: - go-version: '^1.20' + go-version: '1.25.5' check-latest: true - name: Compile man page markup id: gen-man-page-md diff --git a/go.mod b/go.mod index 4ffc8083..3a42e3e5 100644 --- a/go.mod +++ b/go.mod @@ -39,6 +39,4 @@ require ( golang.org/x/tools v0.38.0 // indirect ) -go 1.24.0 - -toolchain go1.24.1 +go 1.25.5 diff --git a/scripts/devtools.sh b/scripts/devtools.sh index 7dac5be4..fdda10cf 100755 --- a/scripts/devtools.sh +++ b/scripts/devtools.sh @@ -1,5 +1,10 @@ #!/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.1.5 -curl -sSfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.22.5 \ No newline at end of file +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 \ No newline at end of file