Commit 3af5f7c
committed
Add dependency check to Makefile
Introduce a new `check-dependencies` target that verifies the presence
of required system packages and Go tools on Debian systems. This target
is added as a prerequisite to the `default` build target.
This change improves the developer experience by providing clear,
actionable feedback if necessary dependencies are missing. Instead of
failing with cryptic errors during the build or test phases, the user is
informed upfront and given instructions on how to install the missing
components.
Additionally, fix goimports execution in fmt target. The `$(shell ...)`
make function is evaluated when the Makefile is first parsed, not when a
target is executed. This caused `goimports` to run every time `make` was
invoked, regardless of the specified target, including for unrelated
targets like `make clean`.1 parent 678c52d commit 3af5f7c
1 file changed
+31
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
108 | 135 | | |
109 | 136 | | |
110 | 137 | | |
| |||
142 | 169 | | |
143 | 170 | | |
144 | 171 | | |
145 | | - | |
| 172 | + | |
146 | 173 | | |
147 | 174 | | |
148 | 175 | | |
| |||
0 commit comments