Change stripVersion comment to indicate that it's not rubbish

But just extra data that Nix can't handle in version attributes.
This commit is contained in:
adisbladis 2022-09-02 16:20:36 +12:00
parent 9f06fea972
commit 6c4e4b7f57

View file

@ -139,7 +139,8 @@ let
)
));
# Strip the rubbish that Go adds to versions, and fall back to a version based on the date if it's a placeholder value
# Strip extra data that Go adds to versions, and fall back to a version based on the date if it's a placeholder value.
# This is data that Nix can't handle in the version attribute.
stripVersion = version:
let
parts = elemAt (split "(\\+|-)" (removePrefix "v" version));