diff --git a/Makefile b/Makefile index ac8d4a6..6702d96 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-opentofu diff --git a/plugin/utils.go b/plugin/utils.go index f04c34f..998eafb 100644 --- a/plugin/utils.go +++ b/plugin/utils.go @@ -126,6 +126,7 @@ func unzip(src, dest string, maxSize int64) error { _ = os.MkdirAll(path, f.Mode()) } else { _ = os.MkdirAll(filepath.Dir(path), f.Mode()) + f, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, f.Mode()) if err != nil { return err