From ee3c17903c782aa7dae4c1227839c4756e86e33f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 09:26:02 +0100 Subject: [PATCH] chore(deps): update dependency golangci/golangci-lint to v1.56.1 (#88) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Kaussow --- Makefile | 2 +- plugin/aws.go | 1 - plugin/impl.go | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5353b0b..4597b2a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # renovate: datasource=github-releases depName=mvdan/gofumpt GOFUMPT_PACKAGE_VERSION := v0.6.0 # renovate: datasource=github-releases depName=golangci/golangci-lint -GOLANGCI_LINT_PACKAGE_VERSION := v1.55.2 +GOLANGCI_LINT_PACKAGE_VERSION := v1.56.1 EXECUTABLE := wp-s3-action diff --git a/plugin/aws.go b/plugin/aws.go index fe3f49b..2681621 100644 --- a/plugin/aws.go +++ b/plugin/aws.go @@ -410,7 +410,6 @@ func (a *AWS) List(path string) ([]string, error) { Prefix: aws.String(path), Marker: aws.String(remote[len(remote)-1]), }) - if err != nil { return remote, err } diff --git a/plugin/impl.go b/plugin/impl.go index 9a4d4d4..dc42f47 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -83,7 +83,9 @@ func (p *Plugin) createSyncJobs() error { localPath = strings.TrimPrefix(path, p.Settings.Source) localPath = strings.TrimPrefix(localPath, "/") } + local = append(local, localPath) + p.Settings.Jobs = append(p.Settings.Jobs, Job{ local: filepath.Join(p.Settings.Source, localPath), remote: filepath.Join(p.Settings.Target, localPath),