Skip to content

Commit 66efd3f

Browse files
committed
TUN-8407: Upgrade go to version 1.22.2
1 parent f274180 commit 66efd3f

File tree

412 files changed

+28046
-17301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+28046
-17301
lines changed

.github/workflows/check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
check:
55
strategy:
66
matrix:
7-
go-version: [1.21.x]
7+
go-version: [1.22.x]
88
os: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:

.teamcity/install-cloudflare-go.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
cd /tmp
44
git clone -q https://github.com/cloudflare/go
55
cd go/src
6-
# https://github.com/cloudflare/go/tree/34129e47042e214121b6bbff0ded4712debed18e is version go1.21.5-devel-cf
7-
git checkout -q 34129e47042e214121b6bbff0ded4712debed18e
6+
# https://github.com/cloudflare/go/tree/ec0a014545f180b0c74dfd687698657a9e86e310 is version go1.22.2-devel-cf
7+
git checkout -q ec0a014545f180b0c74dfd687698657a9e86e310
88
./make.bash

.teamcity/windows/install-cloudflare-go.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Set-Location "$Env:Temp"
99
git clone -q https://github.com/cloudflare/go
1010
Write-Output "Building go..."
1111
cd go/src
12-
# https://github.com/cloudflare/go/tree/34129e47042e214121b6bbff0ded4712debed18e is version go1.21.5-devel-cf
13-
git checkout -q 34129e47042e214121b6bbff0ded4712debed18e
12+
# https://github.com/cloudflare/go/tree/ec0a014545f180b0c74dfd687698657a9e86e310 is version go1.22.2-devel-cf
13+
git checkout -q ec0a014545f180b0c74dfd687698657a9e86e310
1414
& ./make.bat
1515

1616
Write-Output "Installed"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
$ErrorActionPreference = "Stop"
22
$ProgressPreference = "SilentlyContinue"
3-
$GoMsiVersion = "go1.21.5.windows-amd64.msi"
4-
3+
$GoMsiVersion = "go1.22.2.windows-amd64.msi"
4+
55
Write-Output "Downloading go installer..."
6-
6+
77
Set-Location "$Env:Temp"
8-
8+
99
(New-Object System.Net.WebClient).DownloadFile(
1010
"https://go.dev/dl/$GoMsiVersion",
1111
"$Env:Temp\$GoMsiVersion"
1212
)
13-
13+
1414
Write-Output "Installing go..."
1515
Install-Package "$Env:Temp\$GoMsiVersion" -Force
16-
16+
1717
# Go installer updates global $PATH
1818
go env
19-
19+
2020
Write-Output "Installed"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# use a builder image for building cloudflare
22
ARG TARGET_GOOS
33
ARG TARGET_GOARCH
4-
FROM golang:1.21.5 as builder
4+
FROM golang:1.22.2 as builder
55
ENV GO111MODULE=on \
66
CGO_ENABLED=0 \
77
TARGET_GOOS=${TARGET_GOOS} \

Dockerfile.amd64

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# use a builder image for building cloudflare
2-
FROM golang:1.21.5 as builder
2+
FROM golang:1.22.2 as builder
33
ENV GO111MODULE=on \
4-
CGO_ENABLED=0
5-
4+
CGO_ENABLED=0
5+
66
WORKDIR /go/src/github.com/cloudflare/cloudflared/
77

88
# copy our sources into the builder image

Dockerfile.arm64

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# use a builder image for building cloudflare
2-
FROM golang:1.21.5 as builder
2+
FROM golang:1.22.2 as builder
33
ENV GO111MODULE=on \
4-
CGO_ENABLED=0
5-
4+
CGO_ENABLED=0
5+
66
WORKDIR /go/src/github.com/cloudflare/cloudflared/
77

88
# copy our sources into the builder image

cfsetup.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pinned_go: &pinned_go go-boring=1.21.5-1
1+
pinned_go: &pinned_go go-boring=1.22.2-1
22

33
build_dir: &build_dir /cfsetup_build
44
default-flavor: bullseye
@@ -33,11 +33,11 @@ buster: &buster
3333
- ./build-packages-fips.sh
3434
# Build binary for component test
3535
- GOOS=linux GOARCH=amd64 make cloudflared
36-
cover:
36+
cover:
3737
build_dir: *build_dir
3838
builddeps: *build_deps
3939
pre-cache: *build_pre_cache
40-
post-cache:
40+
post-cache:
4141
- make cover
4242
# except FIPS (handled in github-fips-release-pkgs) and macos (handled in github-release-macos-amd64)
4343
github-release-pkgs:
@@ -96,7 +96,7 @@ buster: &buster
9696
- make github-release-built-pkgs
9797
generate-versions-file:
9898
build_dir: *build_dir
99-
builddeps:
99+
builddeps:
100100
- *pinned_go
101101
- build-essential
102102
post-cache:

dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21.5 as builder
1+
FROM golang:1.22.2 as builder
22
ENV GO111MODULE=on \
33
CGO_ENABLED=0
44
WORKDIR /go/src/github.com/cloudflare/cloudflared/

go.mod

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cloudflare/cloudflared
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/coredns/coredns v1.10.0
@@ -16,7 +16,7 @@ require (
1616
github.com/gobwas/ws v1.0.4
1717
github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3
1818
github.com/google/gopacket v1.1.19
19-
github.com/google/uuid v1.3.1
19+
github.com/google/uuid v1.6.0
2020
github.com/gorilla/websocket v1.4.2
2121
github.com/json-iterator/go v1.1.12
2222
github.com/mattn/go-colorable v0.1.13
@@ -27,21 +27,21 @@ require (
2727
github.com/prometheus/client_model v0.2.0
2828
github.com/quic-go/quic-go v0.42.0
2929
github.com/rs/zerolog v1.20.0
30-
github.com/stretchr/testify v1.8.4
30+
github.com/stretchr/testify v1.9.0
3131
github.com/urfave/cli/v2 v2.3.0
3232
go.opentelemetry.io/contrib/propagators v0.22.0
33-
go.opentelemetry.io/otel v1.21.0
34-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0
35-
go.opentelemetry.io/otel/sdk v1.21.0
36-
go.opentelemetry.io/otel/trace v1.21.0
37-
go.opentelemetry.io/proto/otlp v1.0.0
33+
go.opentelemetry.io/otel v1.26.0
34+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0
35+
go.opentelemetry.io/otel/sdk v1.26.0
36+
go.opentelemetry.io/otel/trace v1.26.0
37+
go.opentelemetry.io/proto/otlp v1.2.0
3838
go.uber.org/automaxprocs v1.4.0
39-
golang.org/x/crypto v0.21.0
40-
golang.org/x/net v0.21.0
41-
golang.org/x/sync v0.4.0
42-
golang.org/x/sys v0.18.0
43-
golang.org/x/term v0.18.0
44-
google.golang.org/protobuf v1.31.0
39+
golang.org/x/crypto v0.23.0
40+
golang.org/x/net v0.25.0
41+
golang.org/x/sync v0.6.0
42+
golang.org/x/sys v0.20.0
43+
golang.org/x/term v0.20.0
44+
google.golang.org/protobuf v1.34.1
4545
gopkg.in/natefinch/lumberjack.v2 v2.0.0
4646
gopkg.in/yaml.v3 v3.0.1
4747
nhooyr.io/websocket v1.8.7
@@ -61,14 +61,14 @@ require (
6161
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
6262
github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870 // indirect
6363
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
64-
github.com/go-logr/logr v1.3.0 // indirect
64+
github.com/go-logr/logr v1.4.1 // indirect
6565
github.com/go-logr/stdr v1.2.2 // indirect
6666
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
6767
github.com/gobwas/httphead v0.0.0-20200921212729-da3d93bc3c58 // indirect
6868
github.com/gobwas/pool v0.2.1 // indirect
69-
github.com/golang/protobuf v1.5.3 // indirect
69+
github.com/golang/protobuf v1.5.4 // indirect
7070
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
71-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
71+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
7272
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
7373
github.com/klauspost/compress v1.15.11 // indirect
7474
github.com/kr/text v0.2.0 // indirect
@@ -83,17 +83,17 @@ require (
8383
github.com/prometheus/common v0.37.0 // indirect
8484
github.com/prometheus/procfs v0.8.0 // indirect
8585
github.com/russross/blackfriday/v2 v2.1.0 // indirect
86-
go.opentelemetry.io/otel/metric v1.21.0 // indirect
86+
go.opentelemetry.io/otel/metric v1.26.0 // indirect
8787
go.uber.org/mock v0.4.0 // indirect
8888
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect
8989
golang.org/x/mod v0.11.0 // indirect
90-
golang.org/x/oauth2 v0.13.0 // indirect
91-
golang.org/x/text v0.14.0 // indirect
90+
golang.org/x/oauth2 v0.17.0 // indirect
91+
golang.org/x/text v0.15.0 // indirect
9292
golang.org/x/tools v0.9.1 // indirect
9393
google.golang.org/appengine v1.6.8 // indirect
94-
google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 // indirect
95-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
96-
google.golang.org/grpc v1.60.0 // indirect
94+
google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect
95+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
96+
google.golang.org/grpc v1.63.0 // indirect
9797
gopkg.in/yaml.v2 v2.4.0 // indirect
9898
)
9999

0 commit comments

Comments
 (0)