We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4369d96 commit 5796242Copy full SHA for 5796242
cmd/cli/Makefile
@@ -14,7 +14,7 @@ all: build
14
15
build:
16
@echo "Building $(BINARY_NAME)..."
17
- go build -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(shell git describe --tags --always --dirty)" -o $(BINARY_NAME) .
+ go build -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(shell git describe --tags --always --dirty --match "cmd/cli*" | sed 's|^cmd/cli/||')" -o $(BINARY_NAME) .
18
19
link:
20
@if [ ! -f $(BINARY_NAME) ]; then \
0 commit comments