dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
173 stars 84 forks source link

fix: scripts use project root as current working directory #3891

Closed ericswanson-dfinity closed 2 months ago

ericswanson-dfinity commented 2 months ago

Description

Fixes a few places where dfx would execute commands in a subdirectory of a project, rather than setting the current working directory to the same directory as dfx.json.

This applies to:

Canister post-install scripts already set the working directory. This PR also adds a test that verifies this.

Fixes https://dfinity.atlassian.net/browse/SDK-1814

How Has This Been Tested?

Added e2e tests.

Checklist: