dfinity / motoko

Simple high-level language for writing Internet Computer canisters
Apache License 2.0
517 stars 97 forks source link

A mean to ask types confirmations without using DFX #4479

Closed vporton closed 1 day ago

vporton commented 8 months ago

I want a variation of --stable-compatible that would ask user for confirmations, when types are incompatible, like dfx deploy does.

This is because I want to do this without DFX (DFX is ill-designed: it recompiles everything even when there is no need).

chenyan-dfinity commented 8 months ago

In shell script, you can check the return code of --stable-compatible. If it's not 0, it's an error, and you can ask for confirmation in the script.

vporton commented 8 months ago

In shell script, you can check the return code of --stable-compatible. If it's not 0, it's an error, and you can ask for confirmation in the script.

No, in DFX confirmation is asked for every change individually. I want THAT.

chenyan-dfinity commented 8 months ago

No, it doesn't. See https://github.com/dfinity/sdk/blob/master/src/dfx/src/lib/operations/canister/install_canister.rs#L373