bump Golang to 1.26 (#5721)

This commit is contained in:
bluenviron-bot
2026-04-30 16:23:45 +02:00
committed by GitHub
parent d4ca8d2dcc
commit dc979a0be8
6 changed files with 13 additions and 14 deletions
+6 -6
View File
@@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: "1.25"
go-version: "1.26"
- run: go generate ./...
@@ -33,7 +33,7 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: "1.25"
go-version: "1.26"
- run: make lint-go-mod
@@ -45,7 +45,7 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: "1.25"
go-version: "1.26"
- run: make lint-conf
@@ -57,7 +57,7 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: "1.25"
go-version: "1.26"
- run: make lint-go2api
@@ -69,7 +69,7 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: "1.25"
go-version: "1.26"
- run: make lint-docslinks
@@ -81,7 +81,7 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: "1.25"
go-version: "1.26"
- run: make lint-docsorder
+1 -1
View File
@@ -41,6 +41,6 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: "1.25"
go-version: "1.26"
- run: make test-e2e-nodocker
+1 -1
View File
@@ -1,4 +1,4 @@
BASE_IMAGE = golang:1.25-alpine3.22
BASE_IMAGE = golang:1.26-alpine3.22
GOLANGCI_LINT_IMAGE = golangci/golangci-lint:v2.11.4
NODE_IMAGE = node:20-alpine3.22
+3 -3
View File
@@ -2,7 +2,7 @@
## Standard procedure
1. Install git and Go ≥ 1.25.
1. Install git and Go ≥ 1.26.
2. Clone the repository, enter into the folder and start the building process:
@@ -21,7 +21,7 @@ If you need to use a custom or external libcamera to interact with some Raspberr
1. Download [mediamtx-rpicamera source code](https://github.com/bluenviron/mediamtx-rpicamera) and compile it against the external libcamera. Instructions are in the repository.
2. Install git and Go ≥ 1.25.
2. Install git and Go ≥ 1.26.
3. Clone the _MediaMTX_ repository:
@@ -49,7 +49,7 @@ If you need to use a custom or external libcamera to interact with some Raspberr
Cross compilation allows to build an executable for a target machine from another machine with a 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.
1. On the machine you want to use to compile, install git and Go ≥ 1.25.
1. On the machine you want to use to compile, install git and Go ≥ 1.26.
2. Clone the repository, enter into the folder and start the building process:
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/bluenviron/mediamtx
go 1.25.0
go 1.26.0
require (
code.cloudfoundry.org/bytefmt v0.70.0
+1 -2
View File
@@ -52,8 +52,7 @@ func setAllNilSlicesToEmptyRecursive(rv reflect.Value) {
}
if rv.Kind() == reflect.Struct {
for i := range rv.NumField() {
field := rv.Field(i)
for _, field := range rv.Fields() {
switch field.Kind() {
case reflect.Slice:
if field.IsNil() {