mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 14:11:21 +00:00
genericUpdater: Add support for commit protocol
This will allow it to work with _experimental-update-script-combinators.sequence.
This commit is contained in:
parent
6c08fe3ccf
commit
d81eeb426b
@ -105,7 +105,10 @@ let
|
||||
fi
|
||||
|
||||
# update the nix expression
|
||||
${common-updater-scripts}/bin/update-source-version "$attr_path" "$latest_tag"
|
||||
${common-updater-scripts}/bin/update-source-version --print-changes "$attr_path" "$latest_tag"
|
||||
else
|
||||
# No changes for commit protocol.
|
||||
echo "[]"
|
||||
fi
|
||||
|
||||
echo "" >> ${fileForGitCommands}
|
||||
@ -114,4 +117,8 @@ let
|
||||
in {
|
||||
name = "generic-update-script";
|
||||
command = [ updateScript name pname version attrPath versionLister ignoredVersions rev-prefix odd-unstable patchlevel-unstable ];
|
||||
supportedFeatures = [
|
||||
# Stdout must contain output according to the updateScript commit protocol when the update script finishes with a non-zero exit code.
|
||||
"commit"
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user