Allow removal of reverse dependencies with uninstall --deps flag (#601)
* Fix for #398 * Updated fix for #398 * Enable uninstall of reverse deps * Update README * Updates based on feedback
This commit is contained in:
parent
68bb97f30a
commit
88f5545c75
6 changed files with 70 additions and 21 deletions
|
|
@ -221,8 +221,8 @@ instead of a name.
|
|||
### nimble uninstall
|
||||
|
||||
The ``uninstall`` command will remove an installed package. Attempting to remove
|
||||
a package which other packages depend on is disallowed and will result in an
|
||||
error. You must currently manually remove the reverse dependencies first.
|
||||
a package which other packages depend on will result in an error. You can use the
|
||||
``--inclDeps`` or ``-i`` flag to remove all dependent packages along with the package.
|
||||
|
||||
Similar to the ``install`` command you can specify a version range, for example:
|
||||
|
||||
|
|
@ -749,16 +749,16 @@ to ensure that the dependencies you specified are correct.
|
|||
### Compile with `nim` after changing the nimble directory
|
||||
|
||||
The Nim compiler has been preconfigured to look at the default nimble directory while compiling,
|
||||
so no extra step is required to use nimble managed packages in your code.
|
||||
However, if you are using a custom `nimbleDir`, you need to specify the
|
||||
so no extra step is required to use nimble managed packages in your code.
|
||||
However, if you are using a custom `nimbleDir`, you need to specify the
|
||||
`--nimblePath:PATH` option. For example,
|
||||
if your `nimble` directory is located at `/some/custom/path/nimble`, this should work:
|
||||
|
||||
```
|
||||
nim c --nimblePath:/some/custom/path/nimble/pkgs main.nim
|
||||
```
|
||||
```
|
||||
|
||||
Some code editors rely on `nim check` to check for errors under the hood (e.g. VScode),
|
||||
Some code editors rely on `nim check` to check for errors under the hood (e.g. VScode),
|
||||
and the editor extension may not allow users to pass custom option to `nim check`, which
|
||||
will cause `nim check` to scream `Error: cannot open file:<the_package>`. In this case,
|
||||
you will have to use [Nim compiler's configuration files](https://nim-lang.org/docs/nimc.html#compiler-usage-configuration-files). Simply add the line:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue