feat: update to Go 1.20 (#1838)

Co-authored-by: Manu Gupta <manugupt1@gmail.com>
This commit is contained in:
Nicholas Wiersma
2023-03-13 07:12:39 +02:00
committed by GitHub
parent b72a768a05
commit 4090b0620a
8 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: "1.20"
- name: capture current date
id: date
run: echo "::set-output name=date::$(date -u '+%Y-%m-%d-%H:%M:%S-%Z')"
+1 -1
View File
@@ -1,4 +1,4 @@
ARG GOLANG_VERSION=1.19
ARG GOLANG_VERSION=1.20
FROM golang:$GOLANG_VERSION
RUN echo $GOLANG_VERSION
+1 -1
View File
@@ -4,7 +4,7 @@ DATE=$(shell date -u +%Y-%m-%d-%H:%M:%S-%Z)
GOLANGCI_LINT_VERSION=v1.51.2
ifndef GOLANG_VERSION
override GOLANG_VERSION = 1.19
override GOLANG_VERSION = 1.20
endif
.PHONY: build
+1 -1
View File
@@ -10,7 +10,7 @@ environment:
GOPROXY: https://proxy.golang.org
SKIP_UNTIL_113: true
stack: go 1.19
stack: go 1.20
test_script:
- go version
+1 -1
View File
@@ -5,7 +5,7 @@
# You can override the Go version used to build the image.
# See project Makefile if using make.
# See docker --build-arg if building directly.
ARG GOLANG_VERSION=1.19
ARG GOLANG_VERSION=1.20
ARG ALPINE_VERSION=3.15
FROM golang:${GOLANG_VERSION}-alpine AS builder
+3 -3
View File
@@ -5,7 +5,7 @@ services:
context: .
dockerfile: cmd/proxy/Dockerfile
args:
GOLANG_VERSION: 1.19
GOLANG_VERSION: 1.20
environment:
- ATHENS_MONGO_STORAGE_URL=mongodb://mongo:27017
- TIMEOUT=20 # in case the mongo dependency takes longer to start up
@@ -20,7 +20,7 @@ services:
context: .
dockerfile: Dockerfile.test
args:
GOLANG_VERSION: 1.19
GOLANG_VERSION: 1.20
command: ["./scripts/test_unit.sh"]
environment:
- GO_ENV=test
@@ -36,7 +36,7 @@ services:
context: .
dockerfile: Dockerfile.test
args:
GOLANG_VERSION: 1.19
GOLANG_VERSION: 1.20
command: ["./scripts/test_e2e.sh"]
azurite:
image: arafato/azurite:2.6.5
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/gomods/athens
go 1.19
go 1.20
require (
cloud.google.com/go/storage v1.20.0
+1 -1
View File
@@ -1,4 +1,4 @@
FROM golang:1.19-bullseye
FROM golang:1.20-bullseye
WORKDIR /tmp