Skip to content

Commit dc13736

Browse files
committed
added go toolchain
1 parent d7995cf commit dc13736

File tree

2 files changed

+7
-29
lines changed

2 files changed

+7
-29
lines changed

.github/workflows/vulncheck.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,10 @@ jobs:
3737
- name: Check Go version
3838
id: get-go-version
3939
run: |
40-
echo "Reading from go.mod"
41-
GO_VERSION=$(grep -E "^toolchain " go.mod | awk -F' ' '{print $2}' | tr -d 'go')
42-
echo "Found $GO_VERSION"
43-
echo "go-version="$GO_VERSION"" >> $GITHUB_OUTPUT
44-
45-
- name: Setup Go environment
46-
uses: actions/setup-go@v5
47-
with:
48-
go-version: ${{ steps.get-go-version.outputs.go-version }}
49-
cache: true
50-
51-
- name: Force Go Path
52-
run: |
53-
# This forces the version from setup-go to the top of the PATH for all future steps
54-
echo "$(go env GOROOT)/bin" >> $GITHUB_PATH
55-
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
56-
57-
- name: Install tools and run make generate
58-
run: |
59-
go version
60-
61-
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.32.0
62-
go install github.com/maxbrunsfeld/counterfeiter/v6@v6.11.2
63-
go install github.com/bufbuild/buf/cmd/buf@v1.30.1
64-
65-
make generate GO=$(which go)
66-
env:
67-
GOTOOLCHAIN: local
40+
echo "Reading from go.mod"
41+
GO_VERSION=$(grep -E "^toolchain " go.mod | awk -F' ' '{print $2}' | tr -d 'go')
42+
echo "Found $GO_VERSION"
43+
echo "go-version="$GO_VERSION"" >> $GITHUB_OUTPUT
6844
6945
- name: Run govulncheck
7046
id: govulncheck

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/nginx/agent/v3
22

3-
go 1.25.7
3+
go 1.25.0
4+
5+
toolchain go1.25.7
46

57
require (
68
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.9-20250912141014-52f32327d4b0.1

0 commit comments

Comments
 (0)