Split out tools from main go.mod into tools/ (#4734)
* Split out tools from main go.mod into tools/ and create Makefile to support running them manually * chore(ci): linter error * fix(ci): fix the pre-commit and pre-push hooks
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//go:build tools
|
||||
|
||||
// Package tools manages development tool dependencies.
|
||||
// This file is used to track tool dependencies separately from the main module,
|
||||
// allowing `go mod vendor` to work without vendoring tool dependencies.
|
||||
//
|
||||
// Use the Makefile to install and run tools:
|
||||
//
|
||||
// make install-tools # Install all tools to ./bin
|
||||
// make install-hooks # Install git hooks
|
||||
// make lint # Run golangci-lint
|
||||
// make fmt # Format code with gofumpt
|
||||
// make sqlc # Generate database models
|
||||
// make api-generate # Generate API code
|
||||
//
|
||||
// See `make help` for all available targets.
|
||||
package tools
|
||||
|
||||
import (
|
||||
_ "github.com/evilmartians/lefthook"
|
||||
_ "github.com/golangci/golangci-lint/v2/cmd/golangci-lint"
|
||||
_ "github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen"
|
||||
_ "github.com/sqlc-dev/sqlc/cmd/sqlc"
|
||||
_ "mvdan.cc/gofumpt"
|
||||
)
|
||||
Reference in New Issue
Block a user