0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

ci/eval: Also count added packages as rebuilds (#361206)

This commit is contained in:
Philip Taron 2024-12-02 12:58:42 -08:00 committed by GitHub
commit cc423c28a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,11 +109,23 @@ def diff($before; $after):
| ($after[0] | expand_system) as $after
| .attrdiff = diff($before; $after)
| .rebuildsByKernel = (
.attrdiff.changed
| map({
key: .,
value: diff($before."\(.)"; $after."\(.)").changed
})
[
(
.attrdiff.changed[]
| {
key: .,
value: diff($before."\(.)"; $after."\(.)").changed
}
)
,
(
.attrdiff.added[]
| {
key: .,
value: ($after."\(.)" | keys)
}
)
]
| from_entries
| transpose
)