Skip to content

Commit 15664d0

Browse files
committed
Bump golang 1.21 for v4.1.2 to avoid CVEs
Signed-off-by: Xie Zheng <[email protected]>
1 parent 497da58 commit 15664d0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/makefile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: 1.19
19+
go-version: 1.21
2020

2121
- name: Run build
2222
run: make build

build/image/photon/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM golang:1.19.10 as golang-build
1+
FROM golang:1.21.5 as golang-build
22

33
WORKDIR /source
44

55
COPY . /source
66

7-
RUN go build -o manager cmd/main.go
7+
RUN CGO_ENABLED=0 go build -o manager cmd/main.go
88

99

1010
FROM photon

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/vmware-tanzu/nsx-operator
22

3-
go 1.19
3+
go 1.21
44

55
replace (
66
github.com/vmware/go-vmware-nsxt => github.com/mengdie-song/go-vmware-nsxt v0.0.0-20220921033217-dbd234470e30 // inventory-keeper includes all commits from github.com/gran-vmv/go-vmware-nsxt v0.0.0-20211206034609-cd7ffaf2c996

0 commit comments

Comments
 (0)