Change ldflags to use internal/config
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-10-06 15:14:42 -07:00
parent 410e005458
commit bb1227eadb
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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