Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dfx deploy to the playground fails for a fresh project; CLI reads DFX_NETWORK #3987

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

ericswanson-dfinity
Copy link
Member

Description

The prebuild step in all of the default projects is dfx generate. Since no --network parameter was provided, the generate step happens for the local network. When deploying with dfx deploy --playground, this would only work if at least dfx build (to the local network) had been run previously.

This PR makes all commands look for the DFX_NETWORK parameter if no --network parameter was passed.

Fixes:

How Has This Been Tested?

Added an e2e test and tested manually.

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@ericswanson-dfinity ericswanson-dfinity requested a review from a team as a code owner November 14, 2024 00:24
@ericswanson-dfinity ericswanson-dfinity merged commit ca58ec7 into master Nov 14, 2024
297 checks passed
@ericswanson-dfinity ericswanson-dfinity deleted the ens/sdk-1882-deploy-playground branch November 14, 2024 04:50
ghost pushed a commit that referenced this pull request Nov 14, 2024
* chore: update motoko version

* chore: update motoko version

* chore: Release 0.24.2-beta.0 (#3961)

Signed-off-by: Jason I <[email protected]>

* fix: dfx deploy to the playground fails for a fresh project; CLI reads DFX_NETWORK (#3987)

Fixes https://dfinity.atlassian.net/browse/SDK-1882
Fixes https://dfinity.atlassian.net/browse/SDK-1860
Fixes https://dfinity.atlassian.net/browse/SDK-1605

(cherry picked from commit ca58ec7)

* chore: cherry pick ca58ec7

* chore: Release 0.24.2 (#3996)

Signed-off-by: Jason <[email protected]>

* chore: update manifest.json

---------

Signed-off-by: Jason I <[email protected]>
Signed-off-by: Jason <[email protected]>
Co-authored-by: Eric Swanson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant