motoko icon indicating copy to clipboard operation
motoko copied to clipboard

A mean to ask types confirmations without using DFX

Open vporton opened this issue 1 year ago • 3 comments

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).

vporton avatar Apr 01 '24 06:04 vporton

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.

chenyan-dfinity avatar Apr 01 '24 16:04 chenyan-dfinity

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.

vporton avatar Apr 02 '24 03:04 vporton

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

chenyan-dfinity avatar Apr 02 '24 04:04 chenyan-dfinity