-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI PANICS when config is a file instead of directory #264
Comments
Hi @bupd, I’m a bit unclear about what’s causing the CLI to panic. If it's not too much trouble, could you kindly provide more details about the panic? For example, the error message, steps to reproduce, or any other relevant context would be incredibly helpful. It would allow us to better understand the issue and try to reproduce it on our end, so we can investigate and work towards a solution. Thank you so much for your help! |
To Reproduce this issueRemove the old config file Expected BehaviourInstead of panicking CLI should return error there is a directory in the place of config file. |
Thank you for providing more details on how to reproduce this issue. I will try to figure out what is going wrong. |
I did the following: mviswanathsai@pop-os:~/.config/harbor-cli$ rm config.yaml
mviswanathsai@pop-os:~/.config/harbor-cli$ mkdir config.yaml
mviswanathsai@pop-os:~/.config/harbor-cli$ ls
config.yaml
mviswanathsai@pop-os:~/.config/harbor-cli$ cd ..
mviswanathsai@pop-os:~/.config$ cd ..
mviswanathsai@pop-os:~$ cd harbor-cli/
mviswanathsai@pop-os:~/harbor-cli$ ./harbor-cli project list
FATA[0000] error reading config file: read /home/mviswanathsai/.config/harbor-cli/config.yaml: is a directory. Please ensure the config file exists. And the output seems to be what we expect. Is this issue fixed now? |
To Reproduce this issue
Expected Behaviour
Instead of panicking CLI should return error there is a directory in the place of config file.
Error output
(PANIC)
The text was updated successfully, but these errors were encountered: