Commit a950f88
authored
fix: zig cc for portable standalone binaries with PKCS11 support (#779)
* fix: use zig cc for portable standalone binaries with PKCS11 support
Replace static builds (which break dlopen/PKCS11) with zig cc portable
builds targeting glibc 2.17+. Binaries are dynamically linked but run
on virtually any Linux distro, including Amazon Linux 2023 (glibc 2.34),
while preserving PKCS11/CloudHSM dlopen support.
- Add zig cc wrapper scripts targeting glibc 2.17 for amd64/arm64/arm
- Install zig toolchain in goreleaser before hooks
- Replace static build targets with portable zig-cc builds
- Fix buildx driver: remove docker driver for dockers_v2 attestation
support, use imagetools create for snapshot retag
* fix: use double quotes for sh -c in goreleaser before hooks
* fix: goreleaser before hooks are plain strings, not maps
* fix: bake zig cc into custom goreleaser-cross image
Move zig toolchain and wrapper scripts into a custom Docker image
(ghcr.io/ecadlabs/goreleaser-cross-zig) instead of downloading at
release time. Eliminates runtime curl downloads and supply chain risk.
- Add .goreleaser/Dockerfile extending goreleaser-cross with zig 0.14.0
- Remove wrapper scripts from repo (baked into image)
- Remove before hooks (nothing to install at build time)
- Use absolute CC paths via PATH (zig-cc-x86_64, etc.)
- Update Makefile to use custom image
* fix: revert to docker driver, disable attestations for dockers_v2
goreleaser snapshot mode doesn't push images, so imagetools create
can't retag them. Revert to the docker driver with local image
loading and manual tag/push for snapshots.
Disable attestations (--provenance=false, --sbom=false) in dockers_v2
build_flags since the docker driver doesn't support them.
* fix: use correct dockers_v2 fields (sbom, flags) to disable attestations1 parent 81bd2de commit a950f88
3 files changed
+46
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 113 | + | |
| 114 | + | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
| 119 | + | |
121 | 120 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 121 | | |
126 | 122 | | |
127 | 123 | | |
128 | | - | |
129 | | - | |
130 | 124 | | |
131 | 125 | | |
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | 129 | | |
136 | 130 | | |
137 | | - | |
| 131 | + | |
138 | 132 | | |
139 | 133 | | |
140 | 134 | | |
141 | 135 | | |
142 | | - | |
| 136 | + | |
143 | 137 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 138 | | |
148 | 139 | | |
149 | 140 | | |
150 | | - | |
151 | | - | |
152 | 141 | | |
153 | 142 | | |
154 | 143 | | |
155 | 144 | | |
156 | 145 | | |
157 | 146 | | |
158 | 147 | | |
159 | | - | |
| 148 | + | |
160 | 149 | | |
161 | 150 | | |
162 | 151 | | |
163 | 152 | | |
164 | | - | |
| 153 | + | |
165 | 154 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 155 | | |
170 | 156 | | |
171 | 157 | | |
172 | | - | |
173 | | - | |
174 | 158 | | |
175 | 159 | | |
176 | 160 | | |
177 | 161 | | |
178 | 162 | | |
179 | 163 | | |
180 | 164 | | |
181 | | - | |
| 165 | + | |
182 | 166 | | |
183 | 167 | | |
184 | 168 | | |
185 | 169 | | |
186 | | - | |
| 170 | + | |
187 | 171 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 172 | | |
192 | 173 | | |
193 | 174 | | |
194 | | - | |
195 | | - | |
196 | 175 | | |
197 | 176 | | |
198 | 177 | | |
199 | 178 | | |
200 | 179 | | |
201 | 180 | | |
202 | 181 | | |
203 | | - | |
| 182 | + | |
204 | 183 | | |
205 | 184 | | |
206 | 185 | | |
207 | 186 | | |
208 | | - | |
| 187 | + | |
209 | 188 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | 189 | | |
214 | 190 | | |
215 | 191 | | |
216 | | - | |
217 | | - | |
218 | 192 | | |
219 | 193 | | |
220 | 194 | | |
| |||
224 | 198 | | |
225 | 199 | | |
226 | 200 | | |
227 | | - | |
| 201 | + | |
228 | 202 | | |
229 | 203 | | |
230 | 204 | | |
231 | 205 | | |
232 | | - | |
| 206 | + | |
233 | 207 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 208 | | |
238 | 209 | | |
239 | 210 | | |
240 | | - | |
241 | | - | |
242 | 211 | | |
243 | 212 | | |
244 | 213 | | |
| |||
250 | 219 | | |
251 | 220 | | |
252 | 221 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
259 | 228 | | |
260 | 229 | | |
261 | 230 | | |
| |||
282 | 251 | | |
283 | 252 | | |
284 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
285 | 257 | | |
286 | 258 | | |
287 | 259 | | |
| |||
306 | 278 | | |
307 | 279 | | |
308 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
309 | 284 | | |
310 | 285 | | |
311 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments