Skip to content

🎧 Your Personal Streaming Service

chore(deps): upgrade Go to 1.26 (#5361)

Deluan Quintão155e293f4d57
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 311090b91..c9e4ba2bf 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -4,7 +4,7 @@
"dockerfile": "Dockerfile",
"args": {
// Update the VARIANT arg to pick a version of Go: 1, 1.15, 1.14
- "VARIANT": "1.25",
+ "VARIANT": "1.26",
// Options
"INSTALL_NODE": "true",
"NODE_VERSION": "v24"
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index e939f1d13..6ebb579e8 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -64,6 +64,10 @@ jobs:
steps:
- uses: actions/checkout@v6
+ - uses: actions/setup-go@v6
+ with:
+ go-version-file: go.mod
+
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
@@ -99,6 +103,10 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
+ - uses: actions/setup-go@v6
+ with:
+ go-version-file: go.mod
+
- name: Download dependencies
run: go mod download
diff --git a/Dockerfile b/Dockerfile
index 66243f84c..105656afb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -43,7 +43,7 @@ COPY --from=ui /build /build
########################################################################################################################
### Build Navidrome binary for Docker image (dynamic musl, enables native libwebp via dlopen)
-FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.25-alpine AS build-alpine
+FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.26-alpine AS build-alpine
COPY --from=xx / /
ARG TARGETPLATFORM
@@ -82,7 +82,7 @@ EOT
########################################################################################################################
### Build Navidrome binary for standalone distribution (static glibc, cross-compiled)
-FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.25-trixie AS base
+FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.26-trixie AS base
RUN apt-get update && apt-get install -y clang lld
COPY --from=xx / /
WORKDIR /workspace
diff --git a/go.mod b/go.mod
index ebac8064f..b7dbb9eeb 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/navidrome/navidrome
-go 1.25.0
+go 1.26.0
// Fork to implement raw tags support
replace go.senan.xyz/taglib => github.com/deluan/go-taglib v0.0.0-20260407173416-cf47afbaa67a