You signed in with another tab or window.
8000
Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
compiled do module cannot be expanded from a dependent package: "Unknown module" for its own sibling #444
A module that contains a compiled do block and imports a sibling module of its own package cannot be imported from another package. The package's own specs pass, because there it is the root package.
Reproduce
Harmat v0.1.0 is public and small. In a fresh package:
The compile-time evaluator resolves the dependency's modules from the dependency's own source root, as ordinary compilation does.
Impact
Any library built on compiled do (the query builder in docs/web-stack-plan.md is the main one) is unusable as a dependency. Harmat had to grow a second, runtime-only statement builder because of this.
Environment: Kex 0.4.0-rc.1 (30c7979), Tey 0.2.1, Erlang/OTP 29.0.5 (Homebrew), macOS arm64. Found while building an application on Rodolfo 0.2 and Harmat 0.1.
Activity
Database boundary, migrations, table declarations and repositories
execute(sql`…`) in migrations; the sql tag is Harmat.Sql's