Open jclulow opened 1 month ago
Fully qualifying the path didn't work for mysterious reasons
$ humility -a target/gimletlet/dist/default/build-gimletlet-image-default.zip hiffy -c SpRot.status
humility: attached via ST-Link V3
humility hiffy failed: failed to find error type Result { ok: AttributedTy { ty: Ty("SprotStatus"), recv: FromBytes }, err: Complex(Ty("drv_sprot_api::SprotError")) }
Taking the easy path out and renaming one of the types instead
Fully qualifying the path didn't work for mysterious reasons
FWIW, Humility historically discarded all crate/module path information. There are parallel APIs I've been gradually adding to use fully qualified names, but each module has to be ported over to use them, and we've been adding new code (using the old APIs) faster than I've been able to keep up.
This suggests that the Idol module does not use the fully-qualified APIs.
Edited to add: Tracking as https://github.com/oxidecomputer/humility/issues/512
In this case I'm looking for
drv_sprot_api::error::SprotError
, but it seems that the phonebook now contains anattest_data::messages::SprotError
as well. Bryan suggests that we usually correct this condition by qualifying stuff in the idol files?