From e67c723cf368e8550c7879dcfe0c4508e056da43 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:27:52 +0000 Subject: [PATCH] fix(deps): update module github.com/kubewarden/policy-sdk-go to v0.11.0 --- go.mod | 2 +- go.sum | 2 ++ vendor/github.com/kubewarden/policy-sdk-go/Makefile | 1 + .../github.com/kubewarden/policy-sdk-go/log_writer_native.go | 4 ++-- .../{log_writer_wasi.go => log_writer_tinygo.go} | 4 ++-- .../github.com/kubewarden/policy-sdk-go/protocol/protocol.go | 4 ++-- vendor/modules.txt | 2 +- 7 files changed, 11 insertions(+), 8 deletions(-) rename vendor/github.com/kubewarden/policy-sdk-go/{log_writer_wasi.go => log_writer_tinygo.go} (91%) diff --git a/go.mod b/go.mod index a5d05eb..27ad037 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ replace github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.3 require ( github.com/deckarep/golang-set/v2 v2.6.0 github.com/kubewarden/gjson v1.7.2 - github.com/kubewarden/policy-sdk-go v0.9.1 + github.com/kubewarden/policy-sdk-go v0.11.0 github.com/wapc/wapc-guest-tinygo v0.3.3 ) diff --git a/go.sum b/go.sum index d94c880..274d4c1 100644 --- a/go.sum +++ b/go.sum @@ -33,6 +33,8 @@ github.com/kubewarden/policy-sdk-go v0.9.0 h1:tS9aMtjkUj04WJ0xjO3o0jSGvtj/T8rGr4 github.com/kubewarden/policy-sdk-go v0.9.0/go.mod h1:4Yg/Wpxnt7p4Ps68hBfnK8qoGURM5MJaq67Kjao2smY= github.com/kubewarden/policy-sdk-go v0.9.1 h1:ogO4Eq6/HEiVk0gnX+RNxFV71ICpf56kHjSqVjGtCDE= github.com/kubewarden/policy-sdk-go v0.9.1/go.mod h1:4Yg/Wpxnt7p4Ps68hBfnK8qoGURM5MJaq67Kjao2smY= +github.com/kubewarden/policy-sdk-go v0.11.0 h1:qW2UqARixH2r8KyitSistiAg0Ex0LA+HJr/xaBwiDcg= +github.com/kubewarden/policy-sdk-go v0.11.0/go.mod h1:4Yg/Wpxnt7p4Ps68hBfnK8qoGURM5MJaq67Kjao2smY= github.com/kubewarden/strfmt v0.1.3 h1:bb+2rbotioROjCkziSt+hqnHXzOlumN94NxDKdV2kPI= github.com/kubewarden/strfmt v0.1.3/go.mod h1:DXoaaIYwqW1LyyRoMeyxfHUU+VUSTNFdj38juCXfRzs= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/vendor/github.com/kubewarden/policy-sdk-go/Makefile b/vendor/github.com/kubewarden/policy-sdk-go/Makefile index e54516e..417a22f 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/Makefile +++ b/vendor/github.com/kubewarden/policy-sdk-go/Makefile @@ -15,6 +15,7 @@ lint: deps: go get github.com/golangci/golangci-lint/cmd/golangci-lint + go install github.com/vektra/mockery/v2@v2.43.2 generate-mocks: mockery diff --git a/vendor/github.com/kubewarden/policy-sdk-go/log_writer_native.go b/vendor/github.com/kubewarden/policy-sdk-go/log_writer_native.go index 419276c..8326e1e 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/log_writer_native.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/log_writer_native.go @@ -1,5 +1,5 @@ -//go:build !wasi -// +build !wasi +//go:build !tinygo +// +build !tinygo // note well: we have to use the tinygo wasi target, because the wasm one is // meant to be used inside of the browser diff --git a/vendor/github.com/kubewarden/policy-sdk-go/log_writer_wasi.go b/vendor/github.com/kubewarden/policy-sdk-go/log_writer_tinygo.go similarity index 91% rename from vendor/github.com/kubewarden/policy-sdk-go/log_writer_wasi.go rename to vendor/github.com/kubewarden/policy-sdk-go/log_writer_tinygo.go index f44f22f..99b82b6 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/log_writer_wasi.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/log_writer_tinygo.go @@ -1,5 +1,5 @@ -//go:build wasi -// +build wasi +//go:build tinygo +// +build tinygo // note well: we have to use the tinygo wasi target, because the wasm one is // meant to be used inside of the browser diff --git a/vendor/github.com/kubewarden/policy-sdk-go/protocol/protocol.go b/vendor/github.com/kubewarden/policy-sdk-go/protocol/protocol.go index 35ba0f2..639b88e 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/protocol/protocol.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/protocol/protocol.go @@ -1,5 +1,5 @@ -//go:build !wasip1 -// +build !wasip1 +//go:build tinygo +// +build tinygo package protocol diff --git a/vendor/modules.txt b/vendor/modules.txt index 687fe28..ada8aec 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -16,7 +16,7 @@ github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1 github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr -# github.com/kubewarden/policy-sdk-go v0.9.1 +# github.com/kubewarden/policy-sdk-go v0.11.0 ## explicit; go 1.22 github.com/kubewarden/policy-sdk-go github.com/kubewarden/policy-sdk-go/constants