furyctl icon indicating copy to clipboard operation
furyctl copied to clipboard

[Furyctl Next] Odd error when specifying a non-semver version

Open ralgozino opened this issue 3 years ago • 1 comments

If I try to use a non semver value in the --version flag, Furyctl fails with an odd error that is not user-friendly

$ go run main.go create config --version vTag
INFO Downloading distribution...
ERRO failed to download distribution: invalid furyctl config: Key: 'Furyctl.Spec.DistributionVersion' Error:Field validation for 'DistributionVersion' failed on the 'permissive-semver' tag
exit status 1

$ go run main.go create config --version main
INFO Downloading distribution...
ERRO failed to download distribution: invalid furyctl config: Key: 'Furyctl.Spec.DistributionVersion' Error:Field validation for 'DistributionVersion' failed on the 'permissive-semver' tag
exit status 1

$ go run main.go create config --version my-custom-branch
INFO Downloading distribution...
ERRO failed to download distribution: invalid furyctl config: Key: 'Furyctl.Spec.DistributionVersion' Error:Field validation for 'DistributionVersion' failed on the 'permissive-semver' tag
exit status 1

ralgozino avatar Jan 20 '23 09:01 ralgozino

this card should be worked after https://github.com/sighupio/furyctl/issues/290, because at the moment there is no minimal config validation, so the error is human-readable:

go run main.go create config --version main --config boh.yaml
INFO Downloading distribution...
ERRO failed to download distribution: unsupported KFD version: seems like the specified version vmain does not exist, try another version from the official repository

Al-Pragliola avatar Mar 28 '23 14:03 Al-Pragliola