Skip to content

Comments

fix: Make build field optional#2351

Merged
mergify[bot] merged 3 commits intomasterfrom
spofford/default-build
Jul 16, 2022
Merged

fix: Make build field optional#2351
mergify[bot] merged 3 commits intomasterfrom
spofford/default-build

Conversation

@adamspofford-dfinity
Copy link
Contributor

@adamspofford-dfinity adamspofford-dfinity commented Jul 15, 2022

Prior to 494c566, someone could leave off the build field of the config for a custom canister and never receive an error about it if they never ran dfx build. This restores that behavior by making a missing build field equivalent to build: [].

@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner July 15, 2022 16:50
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a note to the changelog

@mergify mergify bot merged commit f3261bd into master Jul 16, 2022
@mergify mergify bot deleted the spofford/default-build branch July 16, 2022 00:51
mergify bot pushed a commit that referenced this pull request Jul 25, 2022
…uild step (#2373)

# Description

Adds a test for #2351, and updates the custom deserializer to use a default for the `build` field.

There's no change to the changelog, because this is covered by an existing entry, in the current `UNRELEASED` section.

# How Has This Been Tested?

Updated an existing e2e test.

# Checklist:

- [x] The title of this PR complies with [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
- [x] I have edited the CHANGELOG accordingly.
- [x] I have made corresponding changes to the documentation.
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