mops
mops copied to clipboard
Resolve dependency tree on backend
@ZenVoich I've a mops package with the following mops.toml file
name = "alfangodb"
version = "1.0"
description = "Database for the Internet Computer"
repository = "https://github.com/sagcryptoicp/alfangodb"
license = "MIT"
[dependencies]
base = "0.10.4"
rand = "https://github.com/aviate-labs/rand.mo#v0.2.3"
ulid = "https://github.com/aviate-labs/ulid.mo#v0.1.3"
map = "https://github.com/ZhenyaUsenko/motoko-hash-map#v9.0.1"
When I try to use this pkg in another project as follows it gives me the error saying that package "map" not defined:
[dependencies]
base = "0.10.4"
alfangodb = "https://github.com/sagcryptoicp/alfangodb#initial_version@a92ee0707e6cc5f90e088ca60044bdb988ee6d91"
But when I add all transitive dependencies as follows it works well:
[dependencies]
base = "0.10.4"
rand = "https://github.com/aviate-labs/rand.mo#v0.2.3"
ulid = "https://github.com/aviate-labs/ulid.mo#v0.1.3"
map = "https://github.com/ZhenyaUsenko/motoko-hash-map#v9.0.1"
alfangodb = "https://github.com/sagcryptoicp/alfangodb#initial_version@a92ee0707e6cc5f90e088ca60044bdb988ee6d91"
@ZenVoich Is this issue addressing this problem?
hi @ragpatel8742 thank you for bug report!
This is not related to this issue, but it is a bug. Mops does not parse mops.toml from github dependency. I will fix it.
For now you can publish your package to the mops registry(then it will resolve all transitive deps) or use it as a local dependency