derives-from for NixOS entries does not match reality
NixOS has unstable
branch that is a rolling release similar to Fedora Rawhide. Every six months there is a new stable release branched off the unstable
branch so it looks something like this:
----------------------------------------------------------------------------------
unstable
----------------------------------------------------------------------------------
↑ ↑ ↑ ↑ ↑
+-------+ +-------+ +-------+ +-----------------+ +---------+
| 20.03 | | 20.09 | | 21.03 | ... | (latest stable) | | unknown |
+-------+ +-------+ +-------+ +-----------------+ +---------+
but the current osinfo-db entries have the following relation:
+-------+ +-------+ +-----------------+ +----------+ +---------+
| 20.03 | <--- | 20.09 | <--- ... <--- | (latest stable) | <--- | unstable | <--- | unknown |
+-------+ +-------+ +-----------------+ +----------+ +---------+
The update script also follows this relation, creating file for a new release by cloning the file for the previous one. This is especially annoying when unstable
changes something (e.g. adding GNOME variant in 20.09 cycle).
I am not really sure how to update the script without changing the derives-from
relation. But maybe we should just remove derives-from
altogether and keep devices
and firmware
tags duplicated in each release. I guess it would depend on whether derives-from
has any semantics other than inheriting properties – in common terms, I would consider branching off a derivation so under that interpretation, the relation of the XML files is backwards.
Or we can just handle that manually since changing variants should not be that common.
cc @mmilata