dfinity / vessel

The original package manager for Motoko
Apache License 2.0
113 stars 19 forks source link

Support private library imports #62

Open ByronBecker opened 1 year ago

ByronBecker commented 1 year ago

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.

rvanasa commented 1 year ago

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:

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.

ByronBecker commented 1 year ago

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.