Procházet zdrojové kódy

Upgrade to golang 1.17

tags/v2.1.1
9seconds před 4 roky
rodič
revize
b3c8c4a47d
4 změnil soubory, kde provedl 23 přidání a 8 odebrání
  1. 2
    1
      .github/workflows/ci.yaml
  2. 1
    1
      Dockerfile
  3. 20
    2
      go.mod
  4. 0
    4
      go.sum

+ 2
- 1
.github/workflows/ci.yaml Zobrazit soubor

@@ -30,7 +30,8 @@ jobs:
30 30
     strategy:
31 31
       matrix:
32 32
         go_version:
33
-          - ^1.16
33
+          - ~1.16
34
+          - ^1.17
34 35
     steps:
35 36
       - name: Checkout
36 37
         uses: actions/checkout@v2

+ 1
- 1
Dockerfile Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 ###############################################################################
2 2
 # BUILD STAGE
3 3
 
4
-FROM golang:1.16-alpine AS build
4
+FROM golang:1.17-alpine AS build
5 5
 
6 6
 RUN set -x \
7 7
   && apk --no-cache --update add \

+ 20
- 2
go.mod Zobrazit soubor

@@ -1,6 +1,6 @@
1 1
 module github.com/9seconds/mtg/v2
2 2
 
3
-go 1.16
3
+go 1.17
4 4
 
5 5
 require (
6 6
 	github.com/OneOfOne/xxhash v1.2.8
@@ -13,7 +13,6 @@ require (
13 13
 	github.com/gotd/td v0.34.0
14 14
 	github.com/jarcoal/httpmock v1.0.8
15 15
 	github.com/kentik/patricia v0.0.0-20201202224819-f9447a6e25f1
16
-	github.com/libp2p/go-reuseport v0.0.2
17 16
 	github.com/mccutchen/go-httpbin v1.1.1
18 17
 	github.com/panjf2000/ants/v2 v2.4.6
19 18
 	github.com/pelletier/go-toml v1.9.3
@@ -30,3 +29,22 @@ require (
30 29
 	golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
31 30
 	google.golang.org/protobuf v1.27.1 // indirect
32 31
 )
32
+
33
+require (
34
+	github.com/beorn7/perks v1.0.1 // indirect
35
+	github.com/cenkalti/backoff/v4 v4.1.0 // indirect
36
+	github.com/cespare/xxhash/v2 v2.1.1 // indirect
37
+	github.com/davecgh/go-spew v1.1.1 // indirect
38
+	github.com/gotd/ige v0.1.5 // indirect
39
+	github.com/gotd/xor v0.1.1 // indirect
40
+	github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
41
+	github.com/pkg/errors v0.9.1 // indirect
42
+	github.com/pmezard/go-difflib v1.0.0 // indirect
43
+	github.com/prometheus/client_model v0.2.0 // indirect
44
+	go.uber.org/atomic v1.7.0 // indirect
45
+	go.uber.org/multierr v1.6.0 // indirect
46
+	go.uber.org/zap v1.16.0 // indirect
47
+	golang.org/x/sync v0.0.0-20201207232520-09787c993a3a // indirect
48
+	golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
49
+	gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
50
+)

+ 0
- 4
go.sum Zobrazit soubor

@@ -179,8 +179,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
179 179
 github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
180 180
 github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
181 181
 github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
182
-github.com/libp2p/go-reuseport v0.0.2 h1:XSG94b1FJfGA01BUrT82imejHQyTxO4jEWqheyCXYvU=
183
-github.com/libp2p/go-reuseport v0.0.2/go.mod h1:SPD+5RwGC7rcnzngoYC86GjPzjSywuQyMVAheVBD9nQ=
184 182
 github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
185 183
 github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
186 184
 github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
@@ -248,7 +246,6 @@ github.com/stretchr/testify v1.1.5-0.20170809224252-890a5c3458b4/go.mod h1:a8OnR
248 246
 github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
249 247
 github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
250 248
 github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
251
-github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
252 249
 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
253 250
 github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
254 251
 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
@@ -369,7 +366,6 @@ golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5h
369 366
 golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
370 367
 golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
371 368
 golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
372
-golang.org/x/sys v0.0.0-20190228124157-a34e9553db1e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
373 369
 golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
374 370
 golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
375 371
 golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

Načítá se…
Zrušit
Uložit