diff --git a/.goreleaser.yml b/.goreleaser.yml index bf72fa0..f1c6ac4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,7 +12,7 @@ builds: env: - CGO_ENABLED=0 ldflags: - - -s -w -X streammachine.io/strm/cmd.Version={{.Version}} -X streammachine.io/strm/cmd.GitSha={{.Commit}} -X streammachine.io/strm/cmd.BuiltOn={{.Date}} + - -s -w -X streammachine.io/strm/pkg/cmd.Version={{.Version}} -X streammachine.io/strm/pkg/cmd.GitSha={{.Commit}} -X streammachine.io/strm/pkg/cmd.BuiltOn={{.Date}} goos: - linux - windows diff --git a/Makefile b/Makefile index a7ce329..eda8afd 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ targetVar := streammachine.io/strm/pkg/common.RootCommandName target := dstrm -ldflags := -X '${targetVar}=${target}' +ldflags := -X '${targetVar}=${target}' -X streammachine.io/strm/pkg/cmd.Version=local -X streammachine.io/strm/pkg/cmd.GitSha=local -X streammachine.io/strm/pkg/cmd.BuiltOn=local dist/${target}: ${source_files} Makefile go build -ldflags="${ldflags}" -o $@ ./cmd/strm