Skip to content

Commit 8ecfa5b

Browse files
intel352claude
andauthored
fix(release): resolve release-pipeline failure for v0.3.3 (#14)
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 and updated ldflag to match. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bab2619 commit 8ecfa5b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ builds:
2020
- amd64
2121
- arm64
2222
ldflags:
23-
- -s -w -X main.version={{.Version}}
23+
- -s -w -X main.Version={{.Version}}
2424

2525
archives:
2626
- formats: [tar.gz]

cmd/workflow-plugin-data-engineering/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import (
99
sdk "github.com/GoCodeAlone/workflow/plugin/external/sdk"
1010
)
1111

12-
var version = "0.0.0"
12+
// Version is stamped at release time via goreleaser ldflags (-X main.Version=<tag>).
13+
var Version = "0.0.0"
1314

1415
func main() {
15-
sdk.Serve(internal.NewDataEngineeringPlugin(version), sdk.WithBuildVersion(sdk.ResolveBuildVersion(version)))
16+
sdk.Serve(internal.NewDataEngineeringPlugin(Version), sdk.WithBuildVersion(sdk.ResolveBuildVersion(Version)))
1617
}

0 commit comments

Comments
 (0)