From 96e27d3d2b9e158dcfeab7e32521539046726bde Mon Sep 17 00:00:00 2001 From: Jon Langevin Date: Sun, 24 May 2026 18:29:31 -0400 Subject: [PATCH] fix(release): resolve release-pipeline failure for v0.3.7 goreleaser ldflag used lowercase -X main.version which fails the validate-contract regex check for -X *.Version=. Renamed var to Version (uppercase) in main.go + plugin.go and updated ldflag to match. Co-Authored-By: Claude Sonnet 4.6 --- .goreleaser.yaml | 2 +- cmd/workflow-plugin-eventbus/main.go | 6 +++--- cmd/workflow-plugin-eventbus/plugin.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5e330df..ce48181 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -19,7 +19,7 @@ builds: - amd64 - arm64 ldflags: - - -s -w -X main.version={{.Version}} + - -s -w -X main.Version={{.Version}} archives: - formats: [tar.gz] diff --git a/cmd/workflow-plugin-eventbus/main.go b/cmd/workflow-plugin-eventbus/main.go index 3b6571b..acbadde 100644 --- a/cmd/workflow-plugin-eventbus/main.go +++ b/cmd/workflow-plugin-eventbus/main.go @@ -5,9 +5,9 @@ package main import sdk "github.com/GoCodeAlone/workflow/plugin/external/sdk" -// version is stamped at release time via goreleaser ldflags (-X main.version=). -var version = "0.0.0" +// Version is stamped at release time via goreleaser ldflags (-X main.Version=). +var Version = "0.0.0" func main() { - sdk.Serve(&eventbusPlugin{}, sdk.WithBuildVersion(sdk.ResolveBuildVersion(version))) + sdk.Serve(&eventbusPlugin{}, sdk.WithBuildVersion(sdk.ResolveBuildVersion(Version))) } diff --git a/cmd/workflow-plugin-eventbus/plugin.go b/cmd/workflow-plugin-eventbus/plugin.go index 9e9b6cd..8f2c4cd 100644 --- a/cmd/workflow-plugin-eventbus/plugin.go +++ b/cmd/workflow-plugin-eventbus/plugin.go @@ -38,7 +38,7 @@ var ( func (p *eventbusPlugin) Manifest() sdk.PluginManifest { return sdk.PluginManifest{ Name: "workflow-plugin-eventbus", - Version: version, + Version: Version, Author: "GoCodeAlone", Description: "Provisions durable event-bus clusters (NATS / Kafka / Kinesis) as IaC and exposes typed pipeline steps for publish / consume operations.", }