File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev
15
15
16
16
# Linker flags for injecting version
17
17
# The path is MODULE_PATH/package.variableName
18
- LDFLAGS := -X '$(MODULE_PATH ) /cmd.version=$(VERSION ) '
18
+ LDFLAGS := -X '$(MODULE_PATH ) /internal/ cmd.version=$(VERSION ) '
19
19
20
20
test :
21
21
go test ./...
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import (
14
14
"github.com/mozilla-ai/mcpd/v2/internal/runtime"
15
15
)
16
16
17
+ // version should not be moved/modified without consulting the Makefile,
18
+ // as the path to this var is set on the LDFLAGS variable in the script.
17
19
var version = "dev" // Set at build time using -ldflags
18
20
19
21
// Version is used by other packages to retrieve the build version of mcpd.
You can’t perform that action at this time.
0 commit comments