maintainers/scripts/update.nix: support filling in auto-commit attributes

We can determine all of them when attrPath is present so we might jsut as well do it.
This commit is contained in:
Jan Tojnar
2020-09-20 20:11:46 +02:00
parent 4a161ddb3b
commit b828285933
2 changed files with 36 additions and 21 deletions
+3
View File
@@ -518,6 +518,9 @@ passthru.updateScript = {
]
</programlisting>
</para>
<para>
When the returned array contains exactly one object (e.g. <literal>[{}]</literal>), keys can be omitted and will be determined automatically. Finding out <variable>newVersion</variable> requires <variable>attrPath</variable> to be present either in the update script output or passed to the <variable>passthru.updateScript</variable> attribute set.
</para>
</listitem>
</varlistentry>
</variablelist>