Skip to content

Commit

Permalink
upgrade go version to 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
r-ashish committed Jan 19, 2023
1 parent 4c34433 commit 3625516
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: default

steps:
- name: download-dependencies
image: golang:1.18
image: golang:1.19
commands:
# wait for services to be ready.
# - cd scripts/liveness_probe
Expand All @@ -21,7 +21,7 @@ steps:
path: /go

- name: build
image: golang:1.18
image: golang:1.19
commands:

# build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.19
- name: capture current date
id: date
run: echo "::set-output name=date::$(date -u '+%Y-%m-%d-%H:%M:%S-%Z')"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GOLANG_VERSION=1.18
ARG GOLANG_VERSION=1.19
FROM golang:$GOLANG_VERSION

RUN echo $GOLANG_VERSION
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ VERSION = "unset"
DATE=$(shell date -u +%Y-%m-%d-%H:%M:%S-%Z)

ifndef GOLANG_VERSION
override GOLANG_VERSION = 1.18
override GOLANG_VERSION = 1.19
endif

.PHONY: build
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
GOPROXY: https://proxy.golang.org
SKIP_UNTIL_113: true

stack: go 1.18
stack: go 1.19

test_script:
- go version
Expand Down
2 changes: 1 addition & 1 deletion cmd/proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.18
ARG GOLANG_VERSION=1.19
ARG ALPINE_VERSION=3.15

FROM golang:${GOLANG_VERSION}-alpine AS builder
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
context: .
dockerfile: cmd/proxy/Dockerfile
args:
GOLANG_VERSION: 1.18
GOLANG_VERSION: 1.19
environment:
- ATHENS_MONGO_STORAGE_URL=mongodb://mongo:27017
- TIMEOUT=20 # in case the mongo dependency takes longer to start up
Expand All @@ -20,7 +20,7 @@ services:
context: .
dockerfile: Dockerfile.test
args:
GOLANG_VERSION: 1.18
GOLANG_VERSION: 1.19
command: ["./scripts/test_unit.sh"]
environment:
- GO_ENV=test
Expand All @@ -36,7 +36,7 @@ services:
context: .
dockerfile: Dockerfile.test
args:
GOLANG_VERSION: 1.18
GOLANG_VERSION: 1.19
command: ["./scripts/test_e2e.sh"]
azurite:
image: arafato/azurite:2.6.5
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 github.com/gomods/athens

go 1.18
go 1.19

require (
cloud.google.com/go/storage v1.20.0
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-stretch
FROM golang:1.19-stretch

WORKDIR /tmp

Expand Down

0 comments on commit 3625516

Please sign in to comment.