forked from conduitio-labs/conduit-connector-sql-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 597 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (18 loc) · 597 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
VERSION=$(shell git describe --tags --dirty --always)
.PHONY: build
build:
go build -ldflags "-X 'github.com/conduitio-labs/conduit-connector-sql-server.version=${VERSION}'" -o conduit-connector-sql-server cmd/connector/main.go
.PHONY: test
test:
go test $(GOTEST_FLAGS) ./...
.PHONY: lint
lint:
golangci-lint run
.PHONY: generate
generate:
go generate ./...
.PHONY: install-tools
install-tools:
@echo Installing tools from tools/go.mod
@go list -modfile=tools/go.mod tool | xargs -I % go list -modfile=tools/go.mod -f "%@{{.Module.Version}}" % | xargs -tI % go install %
@go mod tidy