dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
679 stars 67 forks source link

"#devel" isn't a version, flawed detection whether "current"... #331

Open gwiede opened 10 months ago

gwiede commented 10 months ago

Bug: Using "#devel" for nightlies version designation denies user ability to determine if local nightly is actually "current".

When a user selects "devel", the version designation for the nightly version is "#devel" (aside: note presence of '#' character that requires escaping in many common shells). Even if woefully outdated nightly is present, there is no means for user to distinguish that from a "current" nightly, because the version designation is ALWAYS shown as "#devel".

Alas, whatever inside choosenim is supposed to be tracking whether local "#devel" is "current" also appears broken: Even immediately after "choosenim update devel" successfully completes, "choosenim versions" indicates an update is available (and subsequent "choosenim update devel" cmds will indeed re-download and re-install the exact same nightly version they just installed).

To be clear, that "always new nightly available" issue merits its own bug, I'm only mentioning it here to highlight why using "#devel" instead of some actual versioned designation for nightlies creates problems for users as well.