Hi,
On DFX 14.1 (two weeks ago), it was released the sub command “deps”, which I think is really cool and useful!
I want to give it a try on a project I am in, but I am not finding any deeper explanation / reference or guide.
Have searched on internet computer:
Have searched on this forum, no topic that I could find, (either forum search or google search).
My only luck was indeed on the github repo, the very files that have the subcommand codes:
They already have some answers (eg.: that pull command defaults to mainnet, and that can handle the local network as well).
But I am still wondering how to properly use this (which I will probably discover on my own), but still think it’s important to clarify on a guide:
- what use cases does it currently address?
- what does dfx deps pull actually fetches (just the metadata / types / candid or the actual wasm?)
- dfx deps deploy will deploy exactly what? (it would be really cool if it was the wasm itself)
- how does it handle dependencies of the dependencies?
- how should we deal with updates? (I am guessing a simple re-pull and re-deploy would do)
- how should we use this info in our projects (is it possible to use the …/…/declarations as we do for _backend canister? is it possible, in motoko, to do import “canister:some_cool_deps”?)
I will now be discovering it on my own, but since this feature has the potential to profoundly changing the development habits (and making it so much easier to use external services), think the community would really value having more docs about the topic.
Thanks,
Tiago