From 853fd42e46ace31f7c4fa8fffe880819f256aa57 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Sat, 25 Mar 2023 11:48:31 +0100 Subject: [PATCH] bump Golang to 1.20 (#1602) --- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- Makefile | 2 +- README.md | 4 ++-- bench/proxy/Dockerfile | 2 +- bench/publish/Dockerfile | 2 +- bench/read/Dockerfile | 2 +- go.mod | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a3cd304f..e116e4cb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-go@v2 with: - go-version: "1.19" + go-version: "1.20" - run: | go mod tidy diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b1a4db4..054a8ea1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-go@v2 with: - go-version: "1.19" + go-version: "1.20" - run: | sed -i '/gortsplib/d' go.mod diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04d95ff7..fd8dff8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,6 @@ jobs: - uses: actions/setup-go@v2 with: - go-version: "1.19" + go-version: "1.20" - run: make test-highlevel-nodocker diff --git a/Makefile b/Makefile index 1d9124d0..e3ad001a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BASE_IMAGE = golang:1.19-alpine3.17 +BASE_IMAGE = golang:1.20-alpine3.17 LINT_IMAGE = golangci/golangci-lint:v1.50.1 NODE_IMAGE = node:16-alpine3.17 RPI32_IMAGE = balenalib/raspberry-pi:bullseye-run diff --git a/README.md b/README.md index b5ea7ad9..19d2edce 100644 --- a/README.md +++ b/README.md @@ -563,7 +563,7 @@ go tool pprof -text http://localhost:9999/debug/pprof/profile?seconds=30 #### Standard -Install Go ≥ 1.19, download the repository, open a terminal in it and run: +Install Go ≥ 1.20, download the repository, open a terminal in it and run: ```sh go build . @@ -573,7 +573,7 @@ The command will produce the `rtsp-simple-server` binary. #### Raspberry Pi -In case of a Raspberry Pi, the server can be compiled with native support for the Raspberry Pi Camera. Install Go ≥ 1.19, download the repository, open a terminal in it and run: +In case of a Raspberry Pi, the server can be compiled with native support for the Raspberry Pi Camera. Install Go ≥ 1.20, download the repository, open a terminal in it and run: ```sh cd internal/rpicamera/exe diff --git a/bench/proxy/Dockerfile b/bench/proxy/Dockerfile index ada1391b..c876b065 100644 --- a/bench/proxy/Dockerfile +++ b/bench/proxy/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine3.17 +FROM golang:1.20-alpine3.17 RUN apk add --no-cache \ ffmpeg diff --git a/bench/publish/Dockerfile b/bench/publish/Dockerfile index b7bc6f2c..7eb08553 100644 --- a/bench/publish/Dockerfile +++ b/bench/publish/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine3.17 +FROM golang:1.20-alpine3.17 RUN apk add --no-cache \ ffmpeg diff --git a/bench/read/Dockerfile b/bench/read/Dockerfile index 45b585b9..8f1a0024 100644 --- a/bench/read/Dockerfile +++ b/bench/read/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine3.17 +FROM golang:1.20-alpine3.17 RUN apk add --no-cache \ ffmpeg diff --git a/go.mod b/go.mod index 9dd0cf40..be34d791 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/aler9/rtsp-simple-server -go 1.19 +go 1.20 require ( code.cloudfoundry.org/bytefmt v0.0.0