From 3470b5ae069bcbc5cae0734bac69ba797ed4dabb Mon Sep 17 00:00:00 2001 From: ajatprabha Date: Mon, 12 Jun 2023 11:07:37 +0530 Subject: [PATCH] update go version matrix --- .github/workflows/checks.yml | 4 +-- build/Dockerfile | 2 +- go.mod | 62 ++++++++++++++++++++++++++++++------ go.sum | 1 - 4 files changed, 56 insertions(+), 13 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index fe345b1..f7b537f 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ 1.14.x, 1.15.x, 1.16.x ] + go-version: [ 1.18.x, 1.19.x, 1.20.x ] steps: - uses: actions/checkout@v2 - name: Set up Go ${{ matrix.go-version }} @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ 1.14.x, 1.15.x, 1.16.x ] + go-version: [ 1.18.x, 1.19.x, 1.20.x ] steps: - uses: actions/checkout@v2 - name: Set up Go ${{ matrix.go-version }} diff --git a/build/Dockerfile b/build/Dockerfile index bfb695d..285fe7d 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.16-alpine AS builder +FROM golang:1.20-alpine AS builder ENV GO111MODULE=on WORKDIR /app COPY . . diff --git a/go.mod b/go.mod index 82a76f0..71c4fe4 100644 --- a/go.mod +++ b/go.mod @@ -1,30 +1,74 @@ module github.com/gojek/darkroom -go 1.16 +go 1.18 require ( cloud.google.com/go/storage v1.0.0 - github.com/DataDog/datadog-go v2.2.0+incompatible // indirect github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 github.com/anthonynsimon/bild v0.13.0 github.com/aws/aws-sdk-go v1.34.0 github.com/cactus/go-statsd-client/statsd v0.0.0-20190501063751-9a7692639588 github.com/chai2010/webp v1.1.0 github.com/gojektech/heimdall v5.0.2+incompatible - github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c // indirect github.com/gorilla/mux v1.8.0 - github.com/pelletier/go-toml v1.4.0 // indirect github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.11.1 - github.com/rcrowley/go-metrics v0.0.0-20190706150252-9beb055b7962 // indirect - github.com/smartystreets/assertions v1.0.0 // indirect github.com/spf13/cobra v1.1.3 - github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/viper v1.7.0 github.com/stretchr/testify v1.7.0 - go.opencensus.io v0.22.2 // indirect go.uber.org/zap v1.17.0 - golang.org/x/tools v0.0.0-20200103221440-774c71fcf114 // indirect google.golang.org/api v0.13.0 sigs.k8s.io/controller-runtime v0.6.1 ) + +require ( + cloud.google.com/go v0.46.3 // indirect + github.com/BurntSushi/toml v0.3.1 // indirect + github.com/DataDog/datadog-go v2.2.0+incompatible // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/cespare/xxhash/v2 v2.1.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/fsnotify/fsnotify v1.4.9 // indirect + github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect + github.com/golang/protobuf v1.4.3 // indirect + github.com/googleapis/gax-go/v2 v2.0.5 // indirect + github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jmespath/go-jmespath v0.3.0 // indirect + github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 // indirect + github.com/magiconair/properties v1.8.1 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/mitchellh/mapstructure v1.1.2 // indirect + github.com/pelletier/go-toml v1.4.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/prometheus/common v0.26.0 // indirect + github.com/prometheus/procfs v0.6.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20190706150252-9beb055b7962 // indirect + github.com/smartystreets/assertions v1.0.0 // indirect + github.com/spf13/afero v1.2.2 // indirect + github.com/spf13/cast v1.3.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/stretchr/objx v0.2.0 // indirect + github.com/subosito/gotenv v1.2.0 // indirect + go.opencensus.io v0.22.2 // indirect + go.uber.org/atomic v1.7.0 // indirect + go.uber.org/multierr v1.6.0 // indirect + golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136 // indirect + golang.org/x/lint v0.0.0-20190930215403-16217165b5de // indirect + golang.org/x/net v0.0.0-20200625001655-4c5254603344 // indirect + golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect + golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect + golang.org/x/text v0.3.3 // indirect + golang.org/x/tools v0.0.0-20200103221440-774c71fcf114 // indirect + google.golang.org/appengine v1.6.1 // indirect + google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a // indirect + google.golang.org/grpc v1.26.0 // indirect + google.golang.org/protobuf v1.26.0-rc.1 // indirect + gopkg.in/ini.v1 v1.51.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect + honnef.co/go/tools v0.0.1-2019.2.3 // indirect +) diff --git a/go.sum b/go.sum index fb1c557..d4090d3 100644 --- a/go.sum +++ b/go.sum @@ -65,7 +65,6 @@ github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnweb github.com/cactus/go-statsd-client/statsd v0.0.0-20190501063751-9a7692639588 h1:6yVhh6P5OsW6HutPt7z2ggDgZczgUtSl2kGRe+DslPU= github.com/cactus/go-statsd-client/statsd v0.0.0-20190501063751-9a7692639588/go.mod h1:3/sdo8I67TaOslRGJ6FqQC/ynu+wg7H6IE4WYtr51hk= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=