Closed thisago closed 1 year ago
When switching from stable to devel, you need to remove /pkgs
directory since it might conflict with /pkgs2
which is used by the latest nimble.
I removed and now it installed db_connector
but it cannot use the std/db_sqlite
, just pkg/db_connector/db_sqlite
Not works:
$ echo "import std/db_sqlite" > /tmp/test.nim && nim r /tmp/test.nim
/tmp/test.nim(1, 11) Error: cannot open file: std/db_sqlite
Works:
$ echo "import pkg/db_connector/db_sqlite" > /tmp/test.nim && nim r /tmp/test.nim
in devel:
- Several Standard libraries are moved to nimble packages, use
nimble
to install them:
std/db_sqlite
=>db_connector/db_sqlite
In devel, the command
nimble install db_connector
gives:and
nimble remove db_connector
And I cannot import any DB lib:
error:
I tried to rebuild the latest devel with
choosenim update devel --latest
but no successNow I tried to clone db_connector into
~/.nimble/pkgs/
, renamed todb_connector-0.1.0
and moved src files to lib root dir, but no success...For the others packages, the installation, removal and import works normally...