Skip to content

Commit

Permalink
ci: support deps udpate
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <[email protected]>
  • Loading branch information
thxCode committed Aug 7, 2024
1 parent bcfdd96 commit 15bd5ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions cmd/gguf-parser/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/gguf-parser/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15bd5ba

Please sign in to comment.