Skip to content

Commit 7ff5cc6

Browse files
Fix CI lint failure for unused commit ldflag variable.
Only version is consumed by the provider; drop the unused commit variable and ldflag to satisfy golangci-lint. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7c6bf06 commit 7ff5cc6

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ builds:
1515
flags:
1616
- -trimpath
1717
ldflags:
18-
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18+
- '-s -w -X main.version={{.Version}}'
1919
goos:
2020
- freebsd
2121
- windows

main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ var (
2323
// these will be set by the goreleaser configuration
2424
// to appropriate values for the compiled binary.
2525
version string = "dev"
26-
commit string = "unknown"
2726

2827
// goreleaser can pass other information to the main package, such as the specific commit
2928
// https://goreleaser.com/cookbooks/using-main.version/

0 commit comments

Comments
 (0)