From 9e636308d9e3612f0765b840b13439cd3b215517 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Sun, 21 Apr 2024 11:12:14 +0200 Subject: [PATCH] bump Go to 1.22 (#3279) --- .github/workflows/code_lint.yml | 4 ++-- .github/workflows/code_test.yml | 2 +- Makefile | 2 +- README.md | 6 +++--- go.mod | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/code_lint.yml b/.github/workflows/code_lint.yml index 92be6bfe052..d9cafd2291d 100644 --- a/.github/workflows/code_lint.yml +++ b/.github/workflows/code_lint.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: "1.21" + go-version: "1.22" - run: touch internal/servers/hls/hls.min.js @@ -31,7 +31,7 @@ jobs: - uses: actions/setup-go@v2 with: - go-version: "1.21" + go-version: "1.22" - run: | go mod tidy diff --git a/.github/workflows/code_test.yml b/.github/workflows/code_test.yml index de222864941..bb5a1409f45 100644 --- a/.github/workflows/code_test.yml +++ b/.github/workflows/code_test.yml @@ -35,6 +35,6 @@ jobs: - uses: actions/setup-go@v2 with: - go-version: "1.21" + go-version: "1.22" - run: make test-highlevel-nodocker diff --git a/Makefile b/Makefile index 15e7cd26883..0b10828b306 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BASE_IMAGE = golang:1.21-alpine3.19 +BASE_IMAGE = golang:1.22-alpine3.19 LINT_IMAGE = golangci/golangci-lint:v1.56.2 NODE_IMAGE = node:20-alpine3.19 ALPINE_IMAGE = alpine:3.19 diff --git a/README.md b/README.md index 585f312c132..93bb76b66b4 100644 --- a/README.md +++ b/README.md @@ -1992,7 +1992,7 @@ Be aware that RTMPS is currently unsupported by all major players. However, you ### Standard -Install git and Go ≥ 1.21. Clone the repository, enter into the folder and start the building process: +Install git and Go ≥ 1.22. Clone the repository, enter into the folder and start the building process: ```sh git clone https://github.com/bluenviron/mediamtx @@ -2007,7 +2007,7 @@ The command will produce the `mediamtx` binary. The server can be compiled with native support for the Raspberry Pi Camera. Compilation must be performed on a Raspberry Pi, with the following dependencies: -* Go ≥ 1.21 +* Go ≥ 1.22 * `libcamera-dev` * `libfreetype-dev` * `xxd` @@ -2050,7 +2050,7 @@ If the OpenWrt device doesn't have enough resources to compile, you can [cross c Cross compilation allows to build an executable for a target machine from another machine with different operating system or architecture. This is useful in case the target machine doesn't have enough resources for compilation or if you don't want to install the compilation dependencies on it. -On the machine you want to use to compile, install git and Go ≥ 1.21. Clone the repository, enter into the folder and start the building process: +On the machine you want to use to compile, install git and Go ≥ 1.22. Clone the repository, enter into the folder and start the building process: ```sh git clone https://github.com/bluenviron/mediamtx diff --git a/go.mod b/go.mod index e53f73b5e8c..1b135912cd6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bluenviron/mediamtx -go 1.21 +go 1.22 require ( code.cloudfoundry.org/bytefmt v0.0.0