Skip to content

Commit

Permalink
Use built tools instead of go run
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 29, 2023
1 parent 19f55c9 commit abbfcdd
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ script = [
]

[tasks.setup]
dependencies = ['build']
script = [
"git config --local core.hooksPath .githooks",
]
Expand All @@ -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'
Expand Down

0 comments on commit abbfcdd

Please sign in to comment.