Commit b429e47
build: replace Make with go-task for modern task running (#131)
* build: replace Make with go-task for modern task running
Replace the 69-line Makefile with a comprehensive Taskfile.yml (420+ lines)
using go-task (https://taskfile.dev) for better task organization and features.
New capabilities added:
- 45+ tasks vs original 10 Makefile targets
- Task namespacing (build:cli, test:race, lint:fix, etc.)
- Cross-platform builds (linux, darwin, windows / amd64, arm64)
- CPU and memory profiling support
- Fuzz testing integration
- Security scanning (govulncheck)
- LSP server commands
- CI/CD pipeline tasks
- Release management with goreleaser
- Development watch mode
- Parameterized tasks (PKG, SQL, FUZZ_TIME variables)
Documentation updated:
- CLAUDE.md: Updated all build/test commands to use task
- README.md: Added Task runner prerequisites and updated commands
Install task with: go install github.com/go-task/task/v3/cmd/task@latest
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: update all documentation references from Make to Task
Update remaining Make/Makefile references across documentation:
- CONTRIBUTING.md: Update prerequisites, hooks installation commands,
and PR checklist to use task commands
- scripts/install-hooks.sh: Update hint message from 'make fmt' to 'task fmt'
- docs/CLI_GUIDE.md: Replace Makefile example with Taskfile.yml example
for build tools integration
- docs/PRODUCTION_GUIDE.md: Update build tools reference to Task
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: address review comments for Taskfile.yml
Fixes based on code review feedback:
1. Add error handling to lint:fix task - now checks if golangci-lint
is installed before running, with helpful installation message
2. Add watchexec installation info to deps:tools - users are now
informed about optional watchexec for 'task dev' watch mode
3. Add script existence checks:
- hooks:install: validates scripts/install-hooks.sh exists
- fuzz: validates scripts/run_fuzz_tests.sh exists
- security:validate: validates scripts/validate-security-setup.sh exists
4. Add error handling for release tasks:
- release:dry: checks for goreleaser installation
- release:check: checks for goreleaser installation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Ajit Pratap Singh <ajitpratapsingh@Ajits-Mac-mini.local>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2ef82ea commit b429e47
8 files changed
Lines changed: 613 additions & 149 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
56 | 64 | | |
57 | | - | |
58 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | | - | |
62 | | - | |
| 75 | + | |
63 | 76 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
74 | 85 | | |
75 | 86 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 87 | + | |
79 | 88 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 89 | + | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
88 | 100 | | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
93 | | - | |
94 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
95 | 115 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 116 | + | |
| 117 | + | |
99 | 118 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 119 | + | |
| 120 | + | |
103 | 121 | | |
104 | | - | |
105 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
106 | 127 | | |
107 | 128 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 129 | + | |
111 | 130 | | |
112 | 131 | | |
113 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
114 | 142 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 143 | + | |
| 144 | + | |
118 | 145 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
122 | 149 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
126 | 154 | | |
127 | 155 | | |
128 | | - | |
129 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
130 | 160 | | |
131 | 161 | | |
132 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
695 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
696 | 704 | | |
697 | 705 | | |
698 | 706 | | |
699 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
700 | 711 | | |
701 | | - | |
| 712 | + | |
702 | 713 | | |
703 | | - | |
704 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
705 | 722 | | |
706 | 723 | | |
707 | | - | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
708 | 728 | | |
709 | 729 | | |
710 | | - | |
| 730 | + | |
711 | 731 | | |
712 | 732 | | |
713 | 733 | | |
714 | 734 | | |
715 | 735 | | |
716 | 736 | | |
717 | | - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
718 | 741 | | |
719 | | - | |
720 | | - | |
| 742 | + | |
| 743 | + | |
721 | 744 | | |
722 | | - | |
723 | | - | |
| 745 | + | |
| 746 | + | |
724 | 747 | | |
725 | | - | |
726 | | - | |
| 748 | + | |
| 749 | + | |
727 | 750 | | |
728 | 751 | | |
729 | 752 | | |
| |||
0 commit comments