# HG changeset patch # User Axel Prel <axel.prel@xcg-consulting.fr> # Date 1741105988 -3600 # Tue Mar 04 17:33:08 2025 +0100 # Node ID f302f246b81d84d8d04596af95e2b5943051186a # Parent 351d5f443b37dcaa7c10c6a337195f811ec15168 golang 1.24.1 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ variables: - REDNER_BUILD_IMAGE_VERSION: v1.3.3 + REDNER_BUILD_IMAGE_VERSION: v1.4.2 REDNER_BUILD_IMAGE: quay.orus.io/orus/rednerd-build-image:$REDNER_BUILD_IMAGE_VERSION stages: diff --git a/HISTORY.rst b/HISTORY.rst --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,8 @@ Release history =============== +- go 1.24.1 + - template-varlist: fix error handling - engines: implement a Closer interface @@ -18,8 +20,6 @@ - upgrade golangCI to 1.64.6 -- go 1.23.6 - - generate config command: defaults to stdout - mail sender: fix delays and logs diff --git a/engines/wpd/wpd_test.go b/engines/wpd/wpd_test.go --- a/engines/wpd/wpd_test.go +++ b/engines/wpd/wpd_test.go @@ -19,7 +19,7 @@ require.NoError(t, err) - ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) + ctx, cancel := context.WithTimeout(t.Context(), time.Second*5) defer cancel() wpd, err := wpd.NewProcessWPD(p, log) diff --git a/go.mod b/go.mod --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module orus.io/orus-io/rednerd -go 1.23.6 +go 1.24.1 require ( github.com/Code-Hex/go-generics-cache v1.5.1 diff --git a/testutils/context.go b/testutils/context.go --- a/testutils/context.go +++ b/testutils/context.go @@ -8,9 +8,9 @@ func GetContext(t *testing.T) (context.Context, func()) { t.Helper() - if t, ok := t.Deadline(); ok { - return context.WithDeadline(context.Background(), t) + if time, ok := t.Deadline(); ok { + return context.WithDeadline(t.Context(), time) } - return context.WithCancel(context.Background()) + return context.WithCancel(t.Context()) }