If I have two modules with the same name in differrent directory, I get compile error
Error: module names need to be unique per Nimble package;
tree
.
├── moje.nimble
├── src
│ ├── moje
│ │ ├── a
│ │ │ └── x.nim
│ │ └── b
│ │ └── x.nim
│ ├── moje.nim
│ └── nimcache
│ ...
Why it is?
thanks
The compiler uses a .nimble file in a similar way as Python uses the __init__.py files. To fix your issue you can just:
touch src/moje/a.nimble
touch src/moje/b.nimble
Should work then.
thank very match.
I think, that correct path is
touch src/moje/a/a.nimble
touch src/moje/b/b.nimble
It works.