From fa0f2a148046797537d6a62f5b012a322cf0e4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leo=20Bergn=C3=A9hr?= Date: Wed, 27 Nov 2024 10:32:57 +0100 Subject: [PATCH] Write warning in missing version `v` to stderr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Writing it to stdout can cause structured results, such as when using `--format json` to become invalid. Signed-off-by: Leo Bergnéhr --- pkg/porter/lifecycle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/porter/lifecycle.go b/pkg/porter/lifecycle.go index eda08a19b..1ea9927fa 100644 --- a/pkg/porter/lifecycle.go +++ b/pkg/porter/lifecycle.go @@ -251,7 +251,7 @@ func (p *Porter) resolveBundleReference(ctx context.Context, opts *BundleReferen pullOpts := *opts // make a copy just to do the pull pullOpts.Reference = ref.String() - err := ensureVPrefix(&pullOpts, p.Out) + err := ensureVPrefix(&pullOpts, p.Err) if err != nil { return err }