Support private library imports
Vessel currently does not support imports from private libraries. This is due to a limitation of the headers passed by the rust_dhall crate https://github.com/Nadrieril/dhall-rust/issues/134.
I spent a lot of time looking into this today, and it seems like a rather deep limitation of the current dhall-rust implementation.
For now, it's possible to get around this with the following hack:
- Install the latest version of the Dhall CLI
- Rename
package-set.dhallto something likepackage-set-initial.dhall - Add
package-set.dhallto your.gitignore - Add headers via the
usingsyntax orDHALL_HEADERSenvironment variable - Create a bash / npm / make script which runs
dhall resolve --file package-set-initial.dhall > package-set.dhall && vessel install
We are planning to move away from Dhall in favor of Motoko (via motoko.rs) as the preferred configuration language for Vessel, so I'll make sure that custom headers will be easy to use in package-set.mo files.
We are planning to move away from Dhall in favor of Motoko (via motoko.rs) as the preferred configuration language for Vessel
Wooooo 🎉
Looking forward to seeing this. And thanks for the intermediate workaround.