Skip to content

Commit

Permalink
fix: Output correct version
Browse files Browse the repository at this point in the history
Fix wrong version info output:

```
❯ nyan -v
version dev
````

- remove mod_timestamp
- chore: Add "Other work" section
  • Loading branch information
toshimaru committed Aug 12, 2023
1 parent 1295083 commit 338670b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ snapshot:

report_sizes: true

metadata:
mod_timestamp: "{{ .CommitTimestamp }}"

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -24,9 +21,8 @@ builds:
ignore:
- goos: windows
goarch: arm64
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser -X main.treeState={{ .IsGitDirty }}
- -s -w -X github.com/toshimaru/nyan/cmd.version={{.Version}}

checksum:
name_template: 'checksums.txt'
Expand All @@ -53,6 +49,8 @@ changelog:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 10
- title: Other work
order: 99

archives:
- name_template: '{{ .ProjectName }}_{{ title .Os }}_{{ .Arch }}'
Expand Down

0 comments on commit 338670b

Please sign in to comment.