-
Notifications
You must be signed in to change notification settings - Fork 67
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
choosenim self tries to download Nim with choosenim version #322
Comments
Seems to be an easy fix: (added diff --git a/src/choosenim.nim b/src/choosenim.nim
index 7493878..fba9c81 100644
--- a/src/choosenim.nim
+++ b/src/choosenim.nim
@@ -328,14 +328,16 @@ proc performAction(params: CliParams) =
report(initEvent(ActionEvent), params)
case params.command.normalize
- of "update":
- update(params)
+ of "remove":
+ remove(params)
+ of "self":
+ updateSelf(params)
of "show":
show(params)
+ of "update":
+ update(params)
of "versions":
versions(params)
- of "remove":
- remove(params)
else:
choose(params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to run (by mistake)
which gave:
It tried to download the Nim 0.8.4 version with my choosenim version: 0.8.4
This is not a problem since this Nim version does not exist, but it could become problematic if choosenim version matches an existing Nim version.
Expected output
Either an error or
self
becomes an alias ofupdate self
The text was updated successfully, but these errors were encountered: