A file src/json.auk makes a module json, and the package also depends on a package named
json. Since json. would then be ambiguous, Auk rejects the clash instead of picking one.
Wrong#
The project depends on json (installed by raft install) and also has src/json.auk:
[package]
name = "app"
version = "0.1.0"
[deps]
json = "^0.1"pub fn pretty(s: str): str = spub fn parse(s: str): int = s.len()fn main() { print(json.pretty("[1]")) }Fixed#
Drop the dependency you don't use from raft.toml (or rename src/json.auk):
[package]
name = "app"
version = "0.1.0"Common causes#
- A helper module named after a library you also depend on, or a dependency added later.