From abbfcdd7e4c74b721167afa71b278b1ab26c18fb Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 30 Jul 2023 05:19:46 +0900 Subject: [PATCH] Use built tools instead of `go run` --- Makefile.toml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index b3e7a070..5a38c446 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -10,6 +10,7 @@ script = [ ] [tasks.setup] +dependencies = ['build'] script = [ "git config --local core.hooksPath .githooks", ] @@ -21,28 +22,16 @@ script = [ ] [tasks.lint] -command = 'go' -args = [ - 'run', - './cmd/lint', -] +command = 'dist/lint' [tasks.fmt] -command = 'go' -args = [ - 'run', - './cmd/fmt', -] +command = 'dist/fmt' [tasks.check] alias = "lint" [tasks.deps] -command = 'go' -args = [ - 'run', - './cmd/deps', -] +command = 'dist/deps' [tasks.prepare-build] command = 'mkdir'