dfinity/sdk

`.env` is not written

Closed this issue · 3 comments

The last master (f8281fe501756486c52cefc9d03eb0d687b550cf) does not create .env file when running

dfx deploy <canister>

for a canister that does not have post_install command.

It is related by that now get_and_write_environment_variables is called from run_post_install_task that is called under:

if !canister_info.get_post_install().is_empty() {

and my canister does not have post-install command.

This error interferes with my debugging of #3710 - So, I urge you to fix this bug ASAP (and notify me by closing this issue).

bats e2e/tests-dfx/dotenv.bash passed well on master. The bug yet exists however for https://github.com/dfinity/sdk/pull/3710/files PR.

Now it works on #3710, too (e2e/tests-dfx/dotenv.bash test passed).

Closing.