From 76fad4123ab1a81981334c0222f228fe774fa403 Mon Sep 17 00:00:00 2001 From: Markus Waldheim Date: Wed, 10 Jun 2026 11:52:07 +0200 Subject: [PATCH] fix: handle errcheck for fmt.Fprintf in schema version output --- cmd/plugin/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/plugin/main.go b/cmd/plugin/main.go index 5aa4934..93369b1 100644 --- a/cmd/plugin/main.go +++ b/cmd/plugin/main.go @@ -26,7 +26,7 @@ var ( ) func run(ctx context.Context, getenv func(string) string, stderr io.Writer) int { - fmt.Fprintf(stderr, "plugin_schema_version=%d\n", pluginSchemaVersion) + _, _ = fmt.Fprintf(stderr, "plugin_schema_version=%d\n", pluginSchemaVersion) tagName := firstNonEmpty(getenv("SEMREL_PLUGIN_TAG_NAME"), getenv("SEMREL_TAG_NAME"), getenv("SEMREL_VERSION"), getenv("SEMREL_NEXT_VERSION")) versionSource := firstNonEmpty(getenv("SEMREL_VERSION"), getenv("SEMREL_TAG_NAME"), getenv("SEMREL_NEXT_VERSION"), tagName) if tagName == "" || versionSource == "" {