Change ldflags to use internal/config
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
410e005458
commit
bb1227eadb
|
@ -7,7 +7,7 @@ builds:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
binary: lure
|
binary: lure
|
||||||
ldflags:
|
ldflags:
|
||||||
- -X go.elara.ws/lure/pkg/config.Version={{.Version}}
|
- -X go.elara.ws/lure/internal/config.Version={{.Version}}
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@ PREFIX ?= /usr/local
|
||||||
GIT_VERSION = $(shell git describe --tags )
|
GIT_VERSION = $(shell git describe --tags )
|
||||||
|
|
||||||
lure:
|
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:
|
clean:
|
||||||
rm -f lure
|
rm -f lure
|
||||||
|
|
Loading…
Reference in New Issue