Commit acbec80
feat: Add automatic protoc installation to Makefile
Implements automatic protoc download and installation similar to the
main stackrox repo, eliminating the need for manual protoc installation.
Changes:
- Add protoc auto-download logic to Makefile with OS/arch detection
- Downloads protoc 32.1 from GitHub releases to .proto/ directory
- Update proto-generate target to depend on local protoc installation
- Update generate-proto-descriptors.sh to use PROTOC_BIN env var
- Add .proto/ to .gitignore
- Add .proto/ cleanup to clean target
Benefits:
- Developers no longer need to manually install protoc
- Consistent protoc version across all developers and CI
- Works offline after first download
Usage:
make proto-install # Install protoc (automatic on proto-generate)
make proto-generate # Generate descriptors (auto-installs protoc)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 74fc864 commit acbec80
3 files changed
+53
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 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 | + | |
94 | 133 | | |
95 | 134 | | |
96 | 135 | | |
97 | 136 | | |
98 | 137 | | |
99 | | - | |
100 | | - | |
| 138 | + | |
| 139 | + | |
101 | 140 | | |
102 | 141 | | |
103 | 142 | | |
| |||
154 | 193 | | |
155 | 194 | | |
156 | 195 | | |
| 196 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | | - | |
| 27 | + | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments