File tree 5 files changed +11
-9
lines changed
5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 18
18
- name : golangci-lint
19
19
uses : golangci/golangci-lint-action@v3
20
20
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
23
23
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
24
24
25
25
## Install Dependencies
26
26
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.
28
28
29
29
## Run tests
30
30
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
2
4
3
5
# Set mpi-operator version
4
6
# Defaults to v2
@@ -10,7 +12,7 @@ WORKDIR /go/src/github.com/kubeflow/mpi-operator
10
12
RUN make RELEASE_VERSION=${RELEASE_VERSION} mpi-operator.$VERSION
11
13
RUN ln -s mpi-operator.${VERSION} _output/cmd/bin/mpi-operator
12
14
13
- FROM gcr.io/distroless/base-debian10 :latest
15
+ FROM gcr.io/distroless/base-debian11 :latest
14
16
15
17
ENV CONTROLLER_VERSION=$VERSION
16
18
COPY --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:
117
117
118
118
.PHONY : tidy
119
119
tidy :
120
- go mod tidy -go 1.19
120
+ go mod tidy -go 1.20
121
121
122
122
.PHONY : lint
123
123
lint : 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
125
125
126
126
# Generate deploy/v2beta1/mpi-operator.yaml
127
127
manifest : kustomize crd
138
138
GOLANGCI_LINT = $(shell pwd) /bin/golangci-lint
139
139
.PHONY : bin/golangci-lint
140
140
bin/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
142
142
143
143
ENVTEST = $(shell pwd) /bin/setup-envtest
144
144
.PHONY : envtest
Original file line number Diff line number Diff line change 1
1
module github.com/kubeflow/mpi-operator
2
2
3
- go 1.19
3
+ go 1.20
4
4
5
5
require (
6
6
github.com/google/go-cmp v0.5.9
You can’t perform that action at this time.
0 commit comments