Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOUDP-128701: Use Go 1.18 #604

Merged
merged 2 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Used for deploy GitHub action
FROM golang:1.17
FROM golang:1.18

ENV KUBECTL_VERSION 1.18.12

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/gen-install-scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17
FROM golang:1.18

ENV KUBECTL_VERSION 1.18.12
ENV GO111MODULE on
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/int-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17
FROM golang:1.18

ENV GO111MODULE=on

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/set-tag/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ branch_name=${GITHUB_HEAD_REF-}
if [ -z "${branch_name}" ]; then
branch_name=$(echo "$GITHUB_REF" | awk -F'/' '{print $3}')
fi
branch_name=$(echo "${branch_name}" | awk '{print substr($0, 1, 15)}' | sed 's/\//-/g')
branch_name=$(echo "${branch_name}" | awk '{print substr($0, 1, 15)}' | sed 's/\//-/g; s/\./-/g')
tag="${branch_name}-${commit_id}"
echo "::set-output name=tag::$tag"
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.45.2
version: v1.46.2

# Optional: working directory, useful for monorepos
# working-directory:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- name: Download dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- name: Download tools for openshift ui tests
if: ${{ steps.properties.outputs.k8s_platform == 'openshift' && !env.ACT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.17"
go-version: "1.18"

- run: go version

Expand Down
7 changes: 5 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
run:
go: 1.18

linters:
disable-all: true
enable:
- bodyclose
#- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- errorlint
- exportloopref
- gocritic
#- gocritic
- gocyclo
- goimports
- goprintffuncname
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.17 as builder
FROM golang:1.18 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.post-install
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.17 as builder
FROM golang:1.18 as builder

ENV CGO_ENABLED=0
ENV GOOS=linux
Expand Down
2 changes: 1 addition & 1 deletion test/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Please push to mongodbinternal/test-app:v1

# Build the manager binary
FROM golang:1.17 as builder
FROM golang:1.18 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down