mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-05 01:59:08 +00:00
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:
parent
9f06fea972
commit
6c4e4b7f57
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue