TL;DR: This change make binenv update ignoring invalid version names instead of failing with a panic.
I tried to add Hashicorp Packer tool in distributions and I found that it is not possible because of one of their releases (the nightly one).
As you can see, this tool have a nightly version that can't be parsed correctly by the go-version library (a library from .... Hashicorp :upside_down_face: ).
Here is the result when you add those lines to distributions.yaml.
TL;DR: This change make
binenv update
ignoring invalid version names instead of failing with a panic.I tried to add Hashicorp Packer tool in distributions and I found that it is not possible because of one of their releases (the nightly one). As you can see, this tool have a
nightly
version that can't be parsed correctly by thego-version
library (a library from .... Hashicorp :upside_down_face: ).Here is the result when you add those lines to
distributions.yaml
.I suggest this little change in order to only ignore the malformed version instead of just "panics". Then the command will only print a message.