Skip to content

Commit 65247b6

Browse files
committed
TUN-7584: Bump go 1.20.6
Pins all docker and cfsetup builds to a specific go patch version. Also ran go fix on repo.
1 parent 5f3cfe0 commit 65247b6

29 files changed

+57
-321
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.19.x]
7+
go-version: [1.20.x]
88
os: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:

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.19 as builder
4+
FROM golang:1.20.6 as builder
55
ENV GO111MODULE=on \
66
CGO_ENABLED=0 \
77
TARGET_GOOS=${TARGET_GOOS} \

Dockerfile.amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# use a builder image for building cloudflare
2-
FROM golang:1.19 as builder
2+
FROM golang:1.20.6 as builder
33
ENV GO111MODULE=on \
44
CGO_ENABLED=0
55

Dockerfile.arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# use a builder image for building cloudflare
2-
FROM golang:1.19 as builder
2+
FROM golang:1.20.6 as builder
33
ENV GO111MODULE=on \
44
CGO_ENABLED=0
55

cfsetup.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pinned_go: &pinned_go go=1.19.6-1
2-
pinned_go_fips: &pinned_go_fips go-boring=1.19.6-1
1+
pinned_go: &pinned_go go=1.20.6-1
2+
pinned_go_fips: &pinned_go_fips go-boring=1.20.6-1
33

44
build_dir: &build_dir /cfsetup_build
55
default-flavor: bullseye

cmd/cloudflared/generic_service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !windows && !darwin && !linux
2-
// +build !windows,!darwin,!linux
32

43
package main
54

cmd/cloudflared/linux_service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build linux
2-
// +build linux
32

43
package main
54

cmd/cloudflared/macos_service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build darwin
2-
// +build darwin
32

43
package main
54

cmd/cloudflared/tunnel/configuration_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build ignore
2-
// +build ignore
32

43
// TODO: Remove the above build tag and include this test when we start compiling with Golang 1.10.0+
54

cmd/cloudflared/tunnel/signal_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !windows
2-
// +build !windows
32

43
package tunnel
54

0 commit comments

Comments
 (0)