Skip to content

Commit

Permalink
Update golang version to 1.20
Browse files Browse the repository at this point in the history
Also updates golangci-lint to 1.51.1, which is needed to work with go
1.20.

Signed-off-by: Scott Garman <[email protected]>
  • Loading branch information
ScottGarman committed Feb 22, 2023
1 parent 36caa1e commit fdaedd1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-scan-trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '1.20'

- name: Build go binary
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: '1.20'
-
name: install cosign
uses: sigstore/cosign-installer@main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '1.20'

- name: Install cockroach binary
run: curl https://binaries.cockroachdb.com/cockroach-v21.1.7.linux-amd64.tgz | tar -xz && sudo cp -i cockroach-v21.1.7.linux-amd64/cockroach /usr/local/bin/
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
version: v1.51.1
args: --timeout=5m

- name: Run go tests for generated models code
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 as builder
FROM golang:1.20 as builder

# Create and change to the app directory.
WORKDIR /app
Expand All @@ -11,7 +11,7 @@ RUN go mod download
# Copy local code to the container image.
COPY . ./

RUN go mod tidy -go=1.18
RUN go mod tidy -go=1.20

# Build the binary.
# -mod=readonly ensures immutable go.mod and go.sum in container builds.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ clean: docker-clean

vendor:
@go mod download
@go mod tidy -go=1.19
@go mod tidy -go=1.20

docker-up:
@docker-compose -f quickstart.yml up -d crdb
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module go.hollow.sh/metadataservice

go 1.19
go 1.20

require (
github.com/cockroachdb/cockroach-go/v2 v2.2.17
Expand Down

0 comments on commit fdaedd1

Please sign in to comment.