nimble icon indicating copy to clipboard operation
nimble copied to clipboard

`nimble install -n foo` downloads and builds before checking if foo is already installed, should fail early

Open ftsf opened this issue 2 years ago • 1 comments

When I attempt to install a package that is already installed nimble should ask me before downloading and building.

nimble v0.13.1 compiled at 2021-05-25 00:49:34

Current behaviour:

nimble install dimscord -n
Downloading https://github.com/krisppurg/dimscord using git
  Verifying dependencies for [email protected]
      Info: Dependency on zippy@>= 0.2.1 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on ws@<= 0.4.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on regex@>= 0.15.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on unicodedb@>= 0.7.2 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on libsodium@<= 0.6.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on flatty@>= 0.1.2 already satisfied
  Verifying dependencies for [email protected]
 Installing [email protected]
    Prompt: [email protected] already exists. Overwrite? -> [forced no]

Expected behaviour:

nimble install dimscord -n
 Installing [email protected]
    Prompt: [email protected] already exists. Overwrite? -> [forced no]

ftsf avatar Sep 23 '21 00:09 ftsf

Seconded This is a bad idea, especially if the lib in question is really big. Then it's just a big waste of time

NullCode1337 avatar Oct 26 '21 14:10 NullCode1337