Skip to content

Commit 039f7a3

Browse files
authored
Merge pull request #195 from crazy-max/fix-go-mods
go.mod: don't specify toolchain and fix cli module
2 parents 1546dfc + 591fc6e commit 039f7a3

34 files changed

+71
-75
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION=1.24.2
3+
ARG GO_VERSION=1.24
44
ARG LLAMA_SERVER_VERSION=latest
55
ARG LLAMA_SERVER_VARIANT=cpu
66
ARG TARGETARCH=${BUILDARCH}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ When making changes to either component:
132132
### Additional Resources
133133

134134
- [Model Runner Documentation](https://docs.docker.com/desktop/features/model-runner/)
135-
- [Model CLI README](https://github.com/docker/model-cli/blob/main/README.md)
135+
- [Model CLI README](https://github.com/docker/model-runner/cmd/cli/blob/main/README.md)
136136
- [Model Specification](https://github.com/docker/model-spec/blob/main/spec.md)
137137
- [Community Slack Channel](https://app.slack.com/client/T0JK1PCN6/C09H9P5E57B)
138138

cmd/cli/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ release:
3636
exit 1; \
3737
fi
3838
@echo "Building release version '$(VERSION)'..."
39-
GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 CGO_CFLAGS="$(MACOS_MIN_VERSION_LDFLAG)" CGO_LDFLAGS="$(MACOS_MIN_VERSION_LDFLAG)" go build -trimpath -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/darwin-arm64/$(PLUGIN_NAME) .
40-
GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/windows-amd64/$(PLUGIN_NAME).exe .
41-
GOOS=windows GOARCH=arm64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/windows-arm64/$(PLUGIN_NAME).exe .
42-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/linux-amd64/$(PLUGIN_NAME) .
43-
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/linux-arm64/$(PLUGIN_NAME) .
39+
GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 CGO_CFLAGS="$(MACOS_MIN_VERSION_LDFLAG)" CGO_LDFLAGS="$(MACOS_MIN_VERSION_LDFLAG)" go build -trimpath -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(VERSION)" -o dist/darwin-arm64/$(PLUGIN_NAME) .
40+
GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(VERSION)" -o dist/windows-amd64/$(PLUGIN_NAME).exe .
41+
GOOS=windows GOARCH=arm64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(VERSION)" -o dist/windows-arm64/$(PLUGIN_NAME).exe .
42+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(VERSION)" -o dist/linux-amd64/$(PLUGIN_NAME) .
43+
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(VERSION)" -o dist/linux-arm64/$(PLUGIN_NAME) .
4444
@echo "Release build complete: $(PLUGIN_NAME) version '$(VERSION)'"
4545

4646
ce-release:
@@ -52,7 +52,7 @@ ce-release:
5252
echo "Warning: This release target is designed for Linux"; \
5353
fi
5454
@echo "Building local release version '$(VERSION)'..."
55-
CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/$(PLUGIN_NAME) .
55+
CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w -X github.com/docker/model-runner/cmd/cli/desktop.Version=$(VERSION)" -o dist/$(PLUGIN_NAME) .
5656
@echo "Local release build complete: $(PLUGIN_NAME) version '$(VERSION)'"
5757

5858
mock:

cmd/cli/commands/completion/functions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package completion
33
import (
44
"strings"
55

6-
"github.com/docker/model-cli/desktop"
6+
"github.com/docker/model-runner/cmd/cli/desktop"
77
"github.com/spf13/cobra"
88
)
99

cmd/cli/commands/compose.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"slices"
88
"strings"
99

10-
"github.com/docker/model-cli/pkg/types"
10+
"github.com/docker/model-runner/cmd/cli/pkg/types"
1111
"github.com/spf13/pflag"
1212

13-
"github.com/docker/model-cli/desktop"
13+
"github.com/docker/model-runner/cmd/cli/desktop"
1414
"github.com/docker/model-runner/pkg/inference/backends/llamacpp"
1515
dmrm "github.com/docker/model-runner/pkg/inference/models"
1616
"github.com/docker/model-runner/pkg/inference/scheduling"

cmd/cli/commands/configure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package commands
33
import (
44
"fmt"
55

6-
"github.com/docker/model-cli/commands/completion"
6+
"github.com/docker/model-runner/cmd/cli/commands/completion"
77
"github.com/docker/model-runner/pkg/inference/scheduling"
88
"github.com/spf13/cobra"
99
)

cmd/cli/commands/df.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"bytes"
55

66
"github.com/docker/go-units"
7-
"github.com/docker/model-cli/commands/completion"
8-
"github.com/docker/model-cli/desktop"
7+
"github.com/docker/model-runner/cmd/cli/commands/completion"
8+
"github.com/docker/model-runner/cmd/cli/desktop"
99
"github.com/olekukonko/tablewriter"
1010
"github.com/spf13/cobra"
1111
)

cmd/cli/commands/inspect.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package commands
33
import (
44
"fmt"
55

6-
"github.com/docker/model-cli/commands/completion"
7-
"github.com/docker/model-cli/commands/formatter"
8-
"github.com/docker/model-cli/desktop"
6+
"github.com/docker/model-runner/cmd/cli/commands/completion"
7+
"github.com/docker/model-runner/cmd/cli/commands/formatter"
8+
"github.com/docker/model-runner/cmd/cli/desktop"
99
"github.com/spf13/cobra"
1010
)
1111

cmd/cli/commands/install-runner.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import (
44
"context"
55
"errors"
66
"fmt"
7-
"github.com/docker/model-cli/pkg/types"
7+
"github.com/docker/model-runner/cmd/cli/pkg/types"
88
"os"
99
"time"
1010

1111
"github.com/docker/docker/api/types/container"
12-
"github.com/docker/model-cli/commands/completion"
13-
"github.com/docker/model-cli/desktop"
14-
gpupkg "github.com/docker/model-cli/pkg/gpu"
15-
"github.com/docker/model-cli/pkg/standalone"
12+
"github.com/docker/model-runner/cmd/cli/commands/completion"
13+
"github.com/docker/model-runner/cmd/cli/desktop"
14+
gpupkg "github.com/docker/model-runner/cmd/cli/pkg/gpu"
15+
"github.com/docker/model-runner/cmd/cli/pkg/standalone"
1616
"github.com/spf13/cobra"
1717
)
1818

cmd/cli/commands/list.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"time"
1010

1111
"github.com/docker/go-units"
12-
"github.com/docker/model-cli/commands/completion"
13-
"github.com/docker/model-cli/commands/formatter"
14-
"github.com/docker/model-cli/desktop"
15-
"github.com/docker/model-cli/pkg/standalone"
12+
"github.com/docker/model-runner/cmd/cli/commands/completion"
13+
"github.com/docker/model-runner/cmd/cli/commands/formatter"
14+
"github.com/docker/model-runner/cmd/cli/desktop"
15+
"github.com/docker/model-runner/cmd/cli/pkg/standalone"
1616
dmrm "github.com/docker/model-runner/pkg/inference/models"
1717
"github.com/olekukonko/tablewriter"
1818
"github.com/spf13/cobra"

0 commit comments

Comments
 (0)