-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d19ddbe
commit 9d1a4ff
Showing
4 changed files
with
40 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
default: help | ||
|
||
GO := go | ||
GOLANG_CI := github.com/golangci/golangci-lint/cmd/[email protected] | ||
GOFUMPT := mvdan.cc/gofumpt@latest | ||
|
||
.PHONY: help | ||
help: ## Show the available commands | ||
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' ./Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: install-tools | ||
install-tools: ## install necessary tools | ||
go install mvdan.cc/gofumpt@latest | ||
bash ./scripts/install-golangci-lint.sh v1.55.2 | ||
|
||
.PHONY: lint | ||
lint: fmt ## Run linters on all go files | ||
golangci-lint run -v --timeout 5m | ||
$(GO) run $(GOLANGCI) run -v | ||
|
||
.PHONY: fmt | ||
fmt: install-tools ## Formats all go files | ||
gofumpt -l -w -extra . | ||
.PHONY: fmt | ||
fmt: ## Formats all go files | ||
$(GO) run $(GOFUMPT) -l -w -extra . | ||
|
||
.PHONY: test | ||
test: | ||
go test ./... -race -count=1 | ||
$(GO) test ./... -race -count=1 | ||
|
||
.PHONY: coverage | ||
coverage: | ||
go test -race -count=1 -covermode=atomic -coverprofile=coverage.out ./... | ||
$(GO) test -race -count=1 -covermode=atomic -coverprofile=coverage.out ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,38 @@ | ||
module github.com/rudderlabs/sql-tunnels | ||
|
||
go 1.21 | ||
|
||
toolchain go1.21.3 | ||
go 1.22.5 | ||
|
||
require ( | ||
github.com/ClickHouse/clickhouse-go/v2 v2.25.0 | ||
github.com/ClickHouse/clickhouse-go/v2 v2.28.1 | ||
github.com/gliderlabs/ssh v0.3.7 | ||
github.com/go-sql-driver/mysql v1.8.1 | ||
github.com/lib/pq v1.10.9 | ||
github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5 | ||
github.com/rudderlabs/compose-test v0.1.3 | ||
github.com/stretchr/testify v1.9.0 | ||
go.uber.org/goleak v1.3.0 | ||
golang.org/x/crypto v0.23.0 | ||
golang.org/x/sync v0.7.0 | ||
golang.org/x/crypto v0.26.0 | ||
golang.org/x/sync v0.8.0 | ||
) | ||
|
||
require ( | ||
filippo.io/edwards25519 v1.1.0 // indirect | ||
github.com/ClickHouse/ch-go v0.61.5 // indirect | ||
github.com/ClickHouse/ch-go v0.62.0 // indirect | ||
github.com/andybalholm/brotli v1.1.0 // indirect | ||
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/go-faster/city v1.0.1 // indirect | ||
github.com/go-faster/errors v0.7.1 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/klauspost/compress v1.17.7 // indirect | ||
github.com/klauspost/compress v1.17.9 // indirect | ||
github.com/paulmach/orb v0.11.1 // indirect | ||
github.com/pierrec/lz4/v4 v4.1.21 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/segmentio/asm v1.2.0 // indirect | ||
github.com/shopspring/decimal v1.4.0 // indirect | ||
go.opentelemetry.io/otel v1.26.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.26.0 // indirect | ||
golang.org/x/sys v0.20.0 // indirect | ||
go.opentelemetry.io/otel v1.29.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.29.0 // indirect | ||
golang.org/x/sys v0.24.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters