Skip to content

Commit

Permalink
Change ldflags to use internal/config
Browse files Browse the repository at this point in the history
  • Loading branch information
Elara6331 committed Oct 6, 2023
1 parent 410e005 commit bb1227e
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 @@ -7,7 +7,7 @@ builds:
- CGO_ENABLED=0
binary: lure
ldflags:
- -X go.elara.ws/lure/pkg/config.Version={{.Version}}
- -X go.elara.ws/lure/internal/config.Version={{.Version}}
goos:
- linux
goarch:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PREFIX ?= /usr/local
GIT_VERSION = $(shell git describe --tags )

lure:
CGO_ENABLED=0 go build -ldflags="-X 'go.elara.ws/lure/pkg/config.Version=$(GIT_VERSION)'"
CGO_ENABLED=0 go build -ldflags="-X 'go.elara.ws/lure/internal/config.Version=$(GIT_VERSION)'"

clean:
rm -f lure
Expand Down

0 comments on commit bb1227e

Please sign in to comment.