From 6c4e4b7f574f7ec32e004934d299dd100fa5745d Mon Sep 17 00:00:00 2001 From: adisbladis Date: Fri, 2 Sep 2022 16:20:36 +1200 Subject: [PATCH] Change stripVersion comment to indicate that it's not rubbish But just extra data that Nix can't handle in version attributes. --- builder/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/default.nix b/builder/default.nix index 78b6c48..44a92ba 100644 --- a/builder/default.nix +++ b/builder/default.nix @@ -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));