Skip to content

Commit

Permalink
手动增加版本号,修复 goreleaser 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Becivells committed Jan 5, 2022
1 parent 0d40dd6 commit 26230ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

var (
FoFaXVersion = "unknown"
FoFaXVersion = "0.1.25"
Commit = "unknown"
Date = "unknown"
Branch = "unknown"
Expand Down
2 changes: 1 addition & 1 deletion scripts/gorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ builds:
binary: fofax
main: ./cmd/fofax/fofax.go
ldflags:
- -s -w -X fofax/internal/cli.FoFaXVersion={{.Version}} -X fofax/internal/cli.Commit={{.ShortCommit}} -X fofax/internal/cli.Date={{.Date}} -X fofax/internal/cli.Branch={{.Branch}}
- -s -w -X github.com/xiecat/fofax/internal/cli.FoFaXVersion={{.Version}} -X github.com/xiecat/fofax/internal/cli.Commit={{.ShortCommit}} -X github.com/xiecat/fofax/internal/cli.Date={{.Date}} -X github.com/xiecat/fofax/internal/cli.Branch={{.Branch}}
goos:
- linux
- windows
Expand Down

0 comments on commit 26230ec

Please sign in to comment.