From bb1227eadbf214a2892e8d7bc9c50601e6b97a64 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Fri, 6 Oct 2023 15:14:42 -0700 Subject: [PATCH] Change ldflags to use internal/config --- .goreleaser.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index aa3e1a1..3208900 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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: diff --git a/Makefile b/Makefile index 2c2e0ac..1dc85cb 100644 --- a/Makefile +++ b/Makefile @@ -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