File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1818 - name : golangci-lint
1919 uses : golangci/golangci-lint-action@v3
2020 with :
21- version : v1.50.1
22- args : --timeout=5m --go=1.19
21+ version : v1.53.3
22+ args : --timeout=5m --go=1.20
2323 only-new-issues : true
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ git clone https://github.com/${GITHUB_USER}/mpi-operator.git
2424
2525## Install Dependencies
2626
27- We use Go v1.19 + for development and use [ Go Modules] ( https://blog.golang.org/using-go-modules ) to download and install the dependencies.
27+ We use Go v1.20 + for development and use [ Go Modules] ( https://blog.golang.org/using-go-modules ) to download and install the dependencies.
2828
2929## Run tests
3030
Original file line number Diff line number Diff line change 1- FROM golang:1.19 AS build
1+ # TODO: Once the gcr.io/distroless/base-debian12 is released, we can use `golang:1.20` as a base image.
2+ # REF: https://github.com/GoogleContainerTools/distroless/issues/1342
3+ FROM golang:1.20-bullseye AS build
24
35# Set mpi-operator version
46# Defaults to v2
@@ -10,7 +12,7 @@ WORKDIR /go/src/github.com/kubeflow/mpi-operator
1012RUN make RELEASE_VERSION=${RELEASE_VERSION} mpi-operator.$VERSION
1113RUN ln -s mpi-operator.${VERSION} _output/cmd/bin/mpi-operator
1214
13- FROM gcr.io/distroless/base-debian10 :latest
15+ FROM gcr.io/distroless/base-debian11 :latest
1416
1517ENV CONTROLLER_VERSION=$VERSION
1618COPY --from=build /go/src/github.com/kubeflow/mpi-operator/_output/cmd/bin/* /opt/
Original file line number Diff line number Diff line change @@ -117,11 +117,11 @@ test_images:
117117
118118.PHONY : tidy
119119tidy :
120- go mod tidy -go 1.19
120+ go mod tidy -go 1.20
121121
122122.PHONY : lint
123123lint : bin/golangci-lint # # Run golangci-lint linter
124- $(GOLANGCI_LINT ) run --new-from-rev=origin/master --go 1.19
124+ $(GOLANGCI_LINT ) run --new-from-rev=origin/master --go 1.20
125125
126126# Generate deploy/v2beta1/mpi-operator.yaml
127127manifest : kustomize crd
138138GOLANGCI_LINT = $(shell pwd) /bin/golangci-lint
139139.PHONY : bin/golangci-lint
140140bin/golangci-lint : bin
141- @GOBIN=$(PROJECT_DIR ) /bin go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
141+ @GOBIN=$(PROJECT_DIR ) /bin go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3
142142
143143ENVTEST = $(shell pwd) /bin/setup-envtest
144144.PHONY : envtest
Original file line number Diff line number Diff line change 11module github.com/kubeflow/mpi-operator
22
3- go 1.19
3+ go 1.20
44
55require (
66 github.com/google/go-cmp v0.5.9
You can’t perform that action at this time.
0 commit comments