From 7c63c91bcf5996f5ada9e00cf5162e5a84fd3d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Tue, 22 Jul 2025 14:19:49 +0200 Subject: [PATCH] chore: bump golangci-lint to v2.3.0 --- .github/workflows/golangci-lint.yml | 3 +-- internal/services/function/helpers_function.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 1b18f41605..bf75188f93 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -15,6 +15,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v8.0.0 with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v2.1.6 + version: v2.3.0 args: --timeout 5m diff --git a/internal/services/function/helpers_function.go b/internal/services/function/helpers_function.go index ae3db47b7e..fd4ed43caa 100644 --- a/internal/services/function/helpers_function.go +++ b/internal/services/function/helpers_function.go @@ -73,7 +73,7 @@ func functionUpload(ctx context.Context, m any, functionAPI *function.API, regio } defer zip.Close() //nolint: errcheck - req, err := http.NewRequest(http.MethodPut, uploadURL.URL, zip) + req, err := http.NewRequestWithContext(ctx, http.MethodPut, uploadURL.URL, zip) if err != nil { return fmt.Errorf("failed to init request: %w", err) }