@@ -207,6 +207,16 @@ def main() -> None:
207
207
list (run_nix_eval_jobs (cmd , flake_output ))
208
208
)
209
209
210
+ def clean_package_for_output (pkg : GitHubActionPackage ) -> dict :
211
+ """Remove debug fields from package for final output"""
212
+ return {
213
+ "attr" : pkg ["attr" ],
214
+ "name" : pkg ["name" ],
215
+ "system" : pkg ["system" ],
216
+ "runs_on" : pkg ["runs_on" ],
217
+ ** ({ "postgresql_version" : pkg ["postgresql_version" ]} if "postgresql_version" in pkg else {})
218
+ }
219
+
210
220
if args .target == "extensions" :
211
221
# filter to only include extension packages and add postgresql_version field
212
222
gh_action_packages = [
@@ -218,14 +228,15 @@ def main() -> None:
218
228
# Group packages by system
219
229
grouped_by_system = defaultdict (list )
220
230
for pkg in gh_action_packages :
221
- grouped_by_system [pkg ["system" ]].append (pkg )
231
+ grouped_by_system [pkg ["system" ]].append (clean_package_for_output ( pkg ) )
222
232
223
233
# Create output with system-specific matrices
224
234
gh_output = {}
225
235
for system , packages in grouped_by_system .items ():
226
236
gh_output [system .replace ("-" , "_" )] = {"include" : packages }
227
237
else :
228
- gh_output = {"include" : gh_action_packages }
238
+ cleaned_packages = [clean_package_for_output (pkg ) for pkg in gh_action_packages ]
239
+ gh_output = {"include" : cleaned_packages }
229
240
230
241
print (json .dumps (gh_output ))
231
242
0 commit comments