Skip to content

Commit 4c681dc

Browse files
chrismoclaude
andcommitted
Use Go pseudo-version format for nightly builds
Changes version format from short commit hash (e.g., 06d757c) to Go pseudo-version format (e.g., v0.0.0-20260108170022-c35bda336273) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7a9d950 commit 4c681dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.super-prerelease-cask-goreleaser.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ builds:
77
env:
88
- CGO_ENABLED=0
99
ldflags:
10-
- -s -X github.com/brimdata/super/cli.version={{ .ShortCommit }}
10+
- -s -X github.com/brimdata/super/cli.version=v0.0.0-{{ .CommitDate | replace "-" "" | replace ":" "" | replace "T" "" | replace "Z" "" | trunc 14 }}-{{ trunc 12 .FullCommit }}
1111
goarch:
1212
- amd64
1313
- arm64
@@ -16,7 +16,7 @@ builds:
1616
- windows
1717
- darwin
1818
archives:
19-
- name_template: "{{ .ProjectName }}-{{ .ShortCommit }}.{{ .Os }}-{{ .Arch }}"
19+
- name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}"
2020
format_overrides:
2121
- goos: windows
2222
formats: [ "zip" ]
@@ -37,10 +37,10 @@ homebrew_casks:
3737
description: |
3838
An analytics database that fuses structured and semi-structured data
3939
url:
40-
template: "https://super-prereleases.s3.us-east-2.amazonaws.com/{{ .ShortCommit }}/{{ .ArtifactName }}"
40+
template: "https://super-prereleases.s3.us-east-2.amazonaws.com/{{ .Version }}/{{ .ArtifactName }}"
4141
checksum:
4242
name_template: 'super-checksums.txt'
4343
snapshot:
44-
version_template: "{{ .ShortCommit }}"
44+
version_template: "v0.0.0-{{ .CommitDate | replace \"-\" \"\" | replace \":\" \"\" | replace \"T\" \"\" | replace \"Z\" \"\" | trunc 14 }}-{{ trunc 12 .FullCommit }}"
4545
changelog:
4646
disable: true

0 commit comments

Comments
 (0)