Skip to content

Commit

Permalink
fix: build version
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiMeow committed Dec 1, 2023
1 parent 3e4de24 commit d775337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.build={{.Version}}
- -s -w -X github.com/BaiMeow/wg-quick-op.version={{.Version}}
goos:
- linux
goarch:
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
)

var version = ""
var version = "dev"

// versionCmd represents the version command
var versionCmd = &cobra.Command{
Expand Down

0 comments on commit d775337

Please sign in to comment.