From 15bd5badd80462d4cd921703e9871727353fd60a Mon Sep 17 00:00:00 2001 From: thxCode Date: Wed, 7 Aug 2024 08:02:42 +0800 Subject: [PATCH] ci: support deps udpate Signed-off-by: thxCode --- Makefile | 6 ++++++ cmd/gguf-parser/go.mod | 4 ++-- cmd/gguf-parser/go.sum | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cb7ee51..1cbad92 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,18 @@ GOARCH := $(shell go env GOARCH) LINT_DIRTY ?= false VERSION ?= $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '[:upper:]' '[:lower:]' || echo "unknown") +DEPS_UPDATE ?= false deps: @echo "+++ $@ +++" cd $(SRCDIR) && go mod tidy && go mod download cd $(SRCDIR)/cmd/gguf-parser && go mod tidy && go mod download + if [[ "$(DEPS_UPDATE)" == "true" ]]; then \ + cd $(SRCDIR) && go get -u -v ./...; \ + cd $(SRCDIR)/cmd/gguf-parser && go get -u -v ./...; \ + fi + @echo "--- $@ ---" generate: diff --git a/cmd/gguf-parser/go.mod b/cmd/gguf-parser/go.mod index e02a93e..c2ff0f4 100644 --- a/cmd/gguf-parser/go.mod +++ b/cmd/gguf-parser/go.mod @@ -5,7 +5,7 @@ go 1.22 replace github.com/gpustack/gguf-parser-go => ../../ require ( - github.com/gpustack/gguf-parser-go v0.0.0-00010101000000-000000000000 + github.com/gpustack/gguf-parser-go v0.6.0 github.com/olekukonko/tablewriter v0.0.5 github.com/urfave/cli/v2 v2.27.3 ) @@ -14,7 +14,7 @@ require ( github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect github.com/henvic/httpretty v0.1.3 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.16 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/rivo/uniseg v0.4.7 // indirect diff --git a/cmd/gguf-parser/go.sum b/cmd/gguf-parser/go.sum index 7b45292..cd024d2 100644 --- a/cmd/gguf-parser/go.sum +++ b/cmd/gguf-parser/go.sum @@ -9,8 +9,8 @@ github.com/henvic/httpretty v0.1.3/go.mod h1:UUEv7c2kHZ5SPQ51uS3wBpzPDibg2U3Y+Ia github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=