diff --git a/.air.toml b/.air.toml index 2739c5b..b72547f 100644 --- a/.air.toml +++ b/.air.toml @@ -7,8 +7,8 @@ tmp_dir = "tmp" bin = "./tmp/main" cmd = "go build -o ./tmp/main ./cmd" delay = 1000 - exclude_dir = ["assets", "tmp", "vendor", "testdata"] - exclude_file = [] + exclude_dir = ["assets", "tmp", "vendor", "testdata",] + exclude_file = ["proxychain/ruleset/rule_resmod_types.gen.go", "proxychain/ruleset/rule_reqmod_types.gen.go"] exclude_regex = ["_test.go"] exclude_unchanged = false follow_symlink = false @@ -21,7 +21,7 @@ tmp_dir = "tmp" poll = false poll_interval = 0 post_cmd = [] - pre_cmd = ["git submodule update --init --recursive; git rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION"] + pre_cmd = ["git submodule update --init --recursive; git rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION; cd proxychain/codegen && go run codegen.go"] rerun = false rerun_delay = 500 send_interrupt = false diff --git a/Makefile b/Makefile index c0ecca8..1113130 100644 --- a/Makefile +++ b/Makefile @@ -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/. \ No newline at end of file + go run ./cmd/.