feat: update go version to 1.16 (#1536)

pull/1538/head
Windfarer 3 years ago committed by GitHub
parent d0c65fbd75
commit f3e75bffca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/go.yml
  2. 2
      cmd/kratos/go.mod
  3. 2
      cmd/protoc-gen-go-errors/go.mod
  4. 2
      cmd/protoc-gen-go-http/go.mod
  5. 4
      config/env/env_test.go
  6. 2
      contrib/config/apollo/go.mod
  7. 2
      contrib/config/etcd/go.mod
  8. 2
      contrib/config/kubernetes/go.mod
  9. 2
      contrib/config/nacos/go.mod
  10. 2
      contrib/log/fluent/go.mod
  11. 2
      contrib/log/zap/go.mod
  12. 2
      contrib/metrics/datadog/go.mod
  13. 2
      contrib/metrics/prometheus/go.mod
  14. 2
      contrib/registry/consul/go.mod
  15. 2
      contrib/registry/etcd/go.mod
  16. 2
      contrib/registry/kubernetes/go.mod
  17. 2
      contrib/registry/nacos/go.mod
  18. 2
      contrib/registry/zookeeper/go.mod
  19. 2
      go.mod

@ -32,7 +32,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.17 go-version: 1.16
- name: Build - name: Build
run: go build ./... run: go build ./...

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/cmd/kratos/v2 module github.com/go-kratos/kratos/cmd/kratos/v2
go 1.15 go 1.16
require ( require (
github.com/AlecAivazis/survey/v2 v2.2.15 github.com/AlecAivazis/survey/v2 v2.2.15

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2 module github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.3 github.com/go-kratos/kratos/v2 v2.0.3

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2 module github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.3 github.com/go-kratos/kratos/v2 v2.0.3

@ -55,7 +55,7 @@ func TestEnvWithPrefix(t *testing.T) {
} }
for k, v := range envs { for k, v := range envs {
t.Setenv(k, v) os.Setenv(k, v)
} }
c := config.New(config.WithSource( c := config.New(config.WithSource(
@ -161,7 +161,7 @@ func TestEnvWithoutPrefix(t *testing.T) {
} }
for k, v := range envs { for k, v := range envs {
t.Setenv(k, v) os.Setenv(k, v)
} }
c := config.New(config.WithSource( c := config.New(config.WithSource(

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/config/apollo/v2 module github.com/go-kratos/kratos/contrib/config/apollo/v2
go 1.15 go 1.16
require ( require (
github.com/apolloconfig/agollo/v4 v4.0.8 github.com/apolloconfig/agollo/v4 v4.0.8

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/config/etcd/v2 module github.com/go-kratos/kratos/contrib/config/etcd/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/config/kubernetes/v2 module github.com/go-kratos/kratos/contrib/config/kubernetes/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/config/nacos/v2 module github.com/go-kratos/kratos/contrib/config/nacos/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/log/fluent/v2 module github.com/go-kratos/kratos/contrib/log/fluent/v2
go 1.15 go 1.16
require ( require (
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/log/zap/v2 module github.com/go-kratos/kratos/contrib/log/zap/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.5 github.com/go-kratos/kratos/v2 v2.0.5

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/metrics/datadog/v2 module github.com/go-kratos/kratos/contrib/metrics/datadog/v2
go 1.15 go 1.16
require ( require (
github.com/DataDog/datadog-go v4.8.1+incompatible github.com/DataDog/datadog-go v4.8.1+incompatible

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/metrics/prometheus/v2 module github.com/go-kratos/kratos/contrib/metrics/prometheus/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/registry/consul/v2 module github.com/go-kratos/kratos/contrib/registry/consul/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/registry/etcd/v2 module github.com/go-kratos/kratos/contrib/registry/etcd/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/registry/kubernetes/v2 module github.com/go-kratos/kratos/contrib/registry/kubernetes/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/registry/nacos/v2 module github.com/go-kratos/kratos/contrib/registry/nacos/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/contrib/registry/zookeeper/v2 module github.com/go-kratos/kratos/contrib/registry/zookeeper/v2
go 1.15 go 1.16
require ( require (
github.com/go-kratos/kratos/v2 v2.0.0 github.com/go-kratos/kratos/v2 v2.0.0

@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/v2 module github.com/go-kratos/kratos/v2
go 1.15 go 1.16
require ( require (
github.com/fsnotify/fsnotify v1.4.9 github.com/fsnotify/fsnotify v1.4.9

Loading…
Cancel
Save