update makefile and air config to run codegen

This commit is contained in:
Kevin Pham
2023-12-05 02:04:18 -06:00
parent bc715d9101
commit 692b2a5d17
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
build:
cd proxychain/codegen && go run codegen.go
git submodule update --init --recursive
git rev-parse --short HEAD > handlers/VERSION
git rev-parse --short HEAD > cmd/VERSION
go build -o ladder -ldflags="-s -w" cmd/main.go
lint:
gofumpt -l -w .
golangci-lint run -c .golangci-lint.yaml --fix
@@ -10,4 +17,4 @@ install-linters:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
run:
go run ./cmd/.
go run ./cmd/.