From 9f7d7722ba5446cdc11c62bf7e42264b912288cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 15:41:19 -0700 Subject: [PATCH] build(deps): Bump github.com/samber/lo from 1.38.1 to 1.47.0 (#459) * build(deps): Bump github.com/samber/lo from 1.38.1 to 1.47.0 Bumps [github.com/samber/lo](https://github.com/samber/lo) from 1.38.1 to 1.47.0. - [Release notes](https://github.com/samber/lo/releases) - [Commits](https://github.com/samber/lo/compare/v1.38.1...v1.47.0) --- updated-dependencies: - dependency-name: github.com/samber/lo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix job test --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: vimystic <122659254+vimystic@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- internal/statefuljob/job_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index dfa0bc9e..c871f3c7 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/peterbourgon/mergemap v0.0.1 github.com/pkg/profile v1.7.0 github.com/robfig/cron/v3 v3.0.1 - github.com/samber/lo v1.38.1 + github.com/samber/lo v1.47.0 github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.16.0 github.com/stretchr/testify v1.9.0 diff --git a/go.sum b/go.sum index 44da2b20..e728f87d 100644 --- a/go.sum +++ b/go.sum @@ -429,8 +429,8 @@ github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.30.0 h1:SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c= github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/samber/lo v1.38.1 h1:j2XEAqXKb09Am4ebOg31SpvzUTTs6EN3VfgeLUhPdXM= -github.com/samber/lo v1.38.1/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA= +github.com/samber/lo v1.47.0 h1:z7RynLwP5nbyRscyvcD043DWYoOcYRv3mV8lBeqOCLc= +github.com/samber/lo v1.47.0/go.mod h1:RmDH9Ct32Qy3gduHQuKJ3gW1fMHAnE/fAzQuf6He5cU= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= diff --git a/internal/statefuljob/job_test.go b/internal/statefuljob/job_test.go index 376c0a85..86fe7c65 100644 --- a/internal/statefuljob/job_test.go +++ b/internal/statefuljob/job_test.go @@ -87,8 +87,8 @@ func TestBuildJobs(t *testing.T) { got := jobs[0] require.Len(t, got.Spec.Template.Spec.Volumes, 3) - gotVol, err := lo.Last(got.Spec.Template.Spec.Volumes) - require.NoError(t, err) + gotVol, ok := lo.Last(got.Spec.Template.Spec.Volumes) + require.True(t, ok, "Expected to find at least one volume") require.Equal(t, "snapshot", gotVol.Name) require.Equal(t, "cosmoshub", gotVol.VolumeSource.PersistentVolumeClaim.ClaimName) })