forked from zgsm-ai/codebase-embedder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 692 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
TAG ?= latest
.PHONY: init
init:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install github.com/golang/mock/mockgen@latest
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6
.PHONY:mock
mock:
mockgen -source=internal/store/vector/vector_store.go -destination=internal/store/vector/mocks/vector_store_mock.go --package=mocks
.PHONY:test
test:
go test ./internal/...
.PHONY:build
build:
go mod tidy
go build -ldflags="-s -w" -o ./bin/main ./cmd/main.go
.PHONY:docker
docker:
docker build -t zgsm/codebase-embedder:$(TAG) .
docker push zgsm/codebase-embedder:$(TAG)
.PHONY:lint
lint:
golangci-lint run ./...