Skip to content

Commit 3c942f9

Browse files
authored
chore: bump go version to 1.25 (#3194)
* chore: bump go version to 1.25 Signed-off-by: Marcin Franczyk <[email protected]> * chore(lint): add revive exception rules for already existing packages Signed-off-by: Marcin Franczyk <[email protected]> --------- Signed-off-by: Marcin Franczyk <[email protected]>
1 parent 8f81076 commit 3c942f9

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM mcr.microsoft.com/devcontainers/go:1.22-bullseye
1+
FROM mcr.microsoft.com/devcontainers/go:1.25-bookworm
22

33
ARG TARGETOS
44
ARG TARGETARCH
55

66
RUN curl -L -o devspace "https://github.com/loft-sh/devspace/releases/latest/download/devspace-linux-${TARGETARCH}" && install -c -m 0755 devspace /usr/local/bin
77
RUN curl -L -o vcluster "https://github.com/loft-sh/vcluster/releases/latest/download/vcluster-linux-${TARGETARCH}" && install -c -m 0755 vcluster /usr/local/bin
8-
RUN curl -L -o kind "https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-${TARGETARCH}" && install -c -m 0755 kind /usr/local/bin
8+
RUN curl -L -o kind "https://kind.sigs.k8s.io/dl/v0.29.0/kind-linux-${TARGETARCH}" && install -c -m 0755 kind /usr/local/bin
99
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/${TARGETARCH}/kubectl && chmod +x ./kubectl && mv ./kubectl /usr/local/bin
10-
RUN bash -c "curl -s https://get.helm.sh/helm-v3.11.1-linux-${TARGETARCH}.tar.gz > helm3.tar.gz" && tar -zxvf helm3.tar.gz linux-${TARGETARCH}/helm && chmod +x linux-${TARGETARCH}/helm && mv linux-${TARGETARCH}/helm /usr/local/bin && rm helm3.tar.gz && rm -R linux-${TARGETARCH}
10+
RUN bash -c "curl -s https://get.helm.sh/helm-v3.18.6-linux-${TARGETARCH}.tar.gz > helm3.tar.gz" && tar -zxvf helm3.tar.gz linux-${TARGETARCH}/helm && chmod +x linux-${TARGETARCH}/helm && mv linux-${TARGETARCH}/helm /usr/local/bin && rm helm3.tar.gz && rm -R linux-${TARGETARCH}

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ jobs:
6767
- name: Run golangci-lint
6868
uses: golangci/golangci-lint-action@v8
6969
with:
70-
version: v2.1
70+
version: v2.4

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ linters:
9696
text: 'SA1019: (.+)Secret is deprecated: Use AdditionalSecrets instead.'
9797
- path: pkg/config/validation.go
9898
text: 'SA1019: (.+)Secret is deprecated: Use AdditionalSecrets instead.'
99+
# The following exceptions apply only to existing packages that need refactoring.
100+
# The rule remains enabled globally.
101+
- path: ^pkg/(cli/util|server/types|snapshot/types|syncer/types|util|plugin/types)/[^/]+\.go$
102+
linters: [revive]
103+
text: avoid meaningless package names
99104
paths:
100105
- licenses
101106
# Paths below are added by 'golangci-lint migrate' when migrating from v1 to v2. They are the

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Test the built CLI tool
210210

211211
### Pre-requisites
212212

213-
- [Golang v1.24](https://go.dev/doc/install)
213+
- [Golang v1.25](https://go.dev/doc/install)
214214
- [Goreleaser](https://goreleaser.com/install/)
215215
- [Just](https://github.com/casey/just)
216216
- [Kind](https://kind.sigs.k8s.io/)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG KINE_VERSION="v0.13.14"
22
FROM rancher/kine:${KINE_VERSION} AS kine
33

44
# Build program
5-
FROM golang:1.24 AS builder
5+
FROM golang:1.25 AS builder
66

77
WORKDIR /vcluster-dev
88
ARG TARGETOS

Dockerfile.cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24 as builder
1+
FROM golang:1.25 as builder
22

33
WORKDIR /vcluster-dev
44
ARG TARGETOS

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/loft-sh/vcluster
22

3-
go 1.24.0
3+
go 1.25
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.36.3

0 commit comments

Comments
 (0)