Skip to content

Commit

Permalink
use the full path of the package
Browse files Browse the repository at this point in the history
Signed-off-by: Rodolfo Sanchez <[email protected]>
  • Loading branch information
dolfolife committed Sep 24, 2023
1 parent 60784d0 commit 2f62543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ builds:
- "arm"
- "arm64"
ldflags:
- "-s -w -X 'cmd/aoctl.version={{.Version}}' -X 'cmd/aoctl.commit={{.Commit}}' -X 'cmd/aoctl.date={{.Date}}' -X 'cmd/aoctl.build={{.Tag}}'"
- '-s -w -X "github.com/dolfolife/aoctl/cmd/aoctl.version={{.Version}}" -X github.com/dolfolife/aoctl/cmd/aoctl.commit={{.Commit}} -X github.com/dolfolife/aoctl/cmd/aoctl.date={{.Date}} -X github.com/dolfolife/aoctl/cmd/aoctl.build={{.Tag}}'
project_name: aoctl
release:
github:
Expand Down
1 change: 1 addition & 0 deletions cmd/aoctl/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var (
Use: "version",
Short: "version of the Advent of Code CLI",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("version: %s\n", version)
var response string
versionOutput := goVersion.New(version, commit, date)

Expand Down

0 comments on commit 2f62543

Please sign in to comment.