From e93c05eae5adad97b1258a6b475043132aa586fb Mon Sep 17 00:00:00 2001 From: Eike David Lenz Date: Thu, 9 Oct 2025 15:14:42 +0200 Subject: [PATCH 1/2] bump go to 1.24.6 --- go.mod | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 513dce4..183fc54 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/mittwald/mittnite -go 1.23.0 - -toolchain go1.24.2 +go 1.24.6 require ( github.com/Masterminds/sprig/v3 v3.3.0 From b469eb92791d52bc93c0e888b35470fefbbc4b08 Mon Sep 17 00:00:00 2001 From: Eike David Lenz Date: Thu, 9 Oct 2025 15:19:44 +0200 Subject: [PATCH 2/2] bump to 1.24.7, fix error msg --- go.mod | 2 +- pkg/cli/api_response_typed.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 183fc54..a8f5540 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mittwald/mittnite -go 1.24.6 +go 1.24.7 require ( github.com/Masterminds/sprig/v3 v3.3.0 diff --git a/pkg/cli/api_response_typed.go b/pkg/cli/api_response_typed.go index 37e7a6b..2dca43d 100644 --- a/pkg/cli/api_response_typed.go +++ b/pkg/cli/api_response_typed.go @@ -45,7 +45,7 @@ func NewTypedAPIResponse[TBody any](body TBody) func(resp *http.Response, err er return &apiRes } case "text/plain": - apiRes.Error = fmt.Errorf(strings.TrimSpace(string(out))) + apiRes.Error = errors.New(strings.TrimSpace(string(out))) return &apiRes default: apiRes.Error = fmt.Errorf("unknown content type %s", strings.Split(resp.Header.Get("Content-Type"), ";")[0])