mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 10:41:53 +02:00
build: update golang version to 1.24 and golangci-lint to v1.64.5 (#1949)
* build: update golang version to 1.24 and golangci-lint to v1.64.5 Signed-off-by: yxxhero <aiopsclub@163.com> * build: update golang version to 1.24 in Dockerfiles Signed-off-by: yxxhero <aiopsclub@163.com> * fix more issues Signed-off-by: yxxhero <aiopsclub@163.com> --------- Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
||||
cache: false
|
||||
- uses: golangci/golangci-lint-action@v6
|
||||
with:
|
||||
version: v1.61.0
|
||||
version: v1.64.5
|
||||
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder
|
||||
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache make git
|
||||
WORKDIR /workspace/helmfile
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder
|
||||
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache make git
|
||||
WORKDIR /workspace/helmfile
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder
|
||||
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache make git
|
||||
WORKDIR /workspace/helmfile
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/helmfile/helmfile
|
||||
|
||||
go 1.23.1
|
||||
go 1.24
|
||||
|
||||
require (
|
||||
dario.cat/mergo v1.0.1
|
||||
|
||||
@@ -391,12 +391,10 @@ func RequiredEnv(name string) (string, error) {
|
||||
|
||||
func Required(warn string, val any) (any, error) {
|
||||
if val == nil {
|
||||
// nolint:govet,staticcheck
|
||||
return nil, fmt.Errorf(warn)
|
||||
return nil, fmt.Errorf("%s", warn)
|
||||
} else if _, ok := val.(string); ok {
|
||||
if val == "" {
|
||||
// nolint:govet,staticcheck
|
||||
return nil, fmt.Errorf(warn)
|
||||
return nil, fmt.Errorf("%s", warn)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user