Giteabot and rafał przypek
d0e8294f46
fix(packages): return empty Chef dependencies instead of null ( #40237 ) ( #40242 )
...
Backport #40237 by @Shadow0Bit
Fixes #40230
Cookbooks without dependencies are served with `"dependencies": null`
from the universe and version metadata endpoints. This happens because
`omitempty` drops the empty map when the metadata is stored. Chef
clients iterate over this value and Policyfile resolution crashes.
Supermarket returns `{}` for these cookbooks, Gitea now does too. The
fix checks whether dependencies are `nil` while building response,
returns an empty map if true. This way cookbooks that are already stored
are covered without a re-upload.
Tested with the Chef integration test and `chef-cli install`.
Assisted by Claude Code (claude-opus-5-5).
Co-authored-by: rafał przypek <58443512+Shadow0Bit@users.noreply.github.com >
2026-11-05 19:03:52 +00:00
..
2026-10-31 19:12:36 +00:00
2026-02-01 10:35:51 +00:00
2026-10-08 11:25:28 -07:00
2026-10-16 09:28:24 +00:00
2026-08-24 18:26:10 +00:00
2026-05-26 15:49:31 -07:00
2026-08-27 15:31:20 +00:00
2026-08-09 10:25:06 +00:00
2026-10-31 19:12:36 +00:00
2026-10-24 13:38:33 +00:00
2026-03-31 17:22:18 +00:00
2026-06-08 18:18:58 +00:00
2026-07-24 02:05:38 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-10-06 15:24:11 +08:00
2026-09-24 20:23:15 +00:00
2026-07-15 17:30:01 +00:00
2026-06-08 18:18:58 +00:00
2026-10-21 04:35:32 +00:00
2026-10-10 20:23:39 +00:00
2026-08-09 10:25:06 +00:00
2026-08-29 19:54:07 +00:00
2026-10-01 10:19:33 +00:00
2026-05-26 15:49:31 -07:00
2026-08-06 18:07:36 +08:00
2026-10-13 15:46:51 +08:00
2026-10-04 13:39:06 +00:00
2026-10-24 15:06:46 +02:00
2026-11-03 17:02:11 +00:00
2026-08-19 14:15:42 +08:00
2026-10-24 13:38:33 +00:00
2026-05-29 01:12:11 +00:00
2026-10-21 10:59:03 +00:00
2026-09-16 20:41:57 +02:00
2026-09-25 06:22:04 -07:00
2026-10-26 20:07:13 +00:00
2026-07-21 13:41:54 +00:00
2026-05-26 15:49:31 -07:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-10-21 17:59:21 +02:00
2026-05-26 15:49:31 -07:00
2026-10-30 08:08:32 +01:00
2026-06-03 17:40:38 +00:00
2026-07-17 22:28:59 +08:00
2026-10-07 10:11:58 -07:00
2026-08-29 19:54:07 +00:00
2026-09-29 14:43:36 +02:00
2026-05-26 15:49:31 -07:00
2026-09-24 20:23:15 +00:00
2026-08-22 01:30:41 +00:00
2026-05-26 15:49:31 -07:00
2026-10-04 13:10:58 +00:00
2026-09-14 14:59:18 +00:00
2026-10-30 18:06:59 +00:00
2026-08-26 19:32:44 +00:00
2025-02-21 00:05:40 +08:00
2026-08-09 10:25:06 +00:00
2026-10-26 19:43:11 +01:00
2026-06-14 18:26:22 +00:00
2026-09-25 06:22:04 -07:00
2026-10-06 09:36:06 +00:00
2026-11-04 06:08:08 +00:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2025-01-21 18:57:07 +00:00
2026-07-23 14:31:29 +00:00
2026-10-26 20:07:13 +00:00
2026-09-23 14:34:19 +00:00
2026-05-26 15:49:31 -07:00
2026-09-22 22:49:36 +08:00
2026-08-19 12:50:06 +00:00
2026-08-09 10:25:06 +00:00
2026-03-26 00:37:48 +08:00
2026-05-26 15:49:31 -07:00
2026-07-12 17:14:09 +00:00
2025-01-09 09:21:47 +08:00
2026-11-05 19:03:52 +00:00
2026-10-07 10:11:58 -07:00
2026-10-08 11:25:28 -07:00
2026-02-20 16:12:22 +00:00
2026-06-04 13:38:56 +00:00