possible reasons
In the version command defined under pkg/cmd/version/version.go it uses the environment variables to extract the litmusctl version.
As I checked further the environment variable CLIversion is set under the main.go file. Which relies on the build process to get the version, which is not what we do for local setup.
possible solution
For now i think we should simply add a check if the version is set in the environment rather than giving an empty output. golang doesn't throw any error as it supports variables without explicitly initialising them. I will add that check but I am confused about the version information in the local.
how to reproduce:
litmusctl version
possible reasons In the version command defined under
pkg/cmd/version/version.go
it uses the environment variables to extract the litmusctl version. As I checked further the environment variableCLIversion
is set under themain.go
file. Which relies on the build process to get the version, which is not what we do for local setup.possible solution For now i think we should simply add a check if the version is set in the environment rather than giving an empty output. golang doesn't throw any error as it supports variables without explicitly initialising them. I will add that check but I am confused about the version information in the local.