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

feat: DfxInterfaceBuilder can provide extension manager #3976

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

ericswanson-dfinity
Copy link
Member

@ericswanson-dfinity ericswanson-dfinity commented Nov 7, 2024

Description

DfxInterfaceBuilder::build loads dfx.json. If dfx.json has a canister with a type defined by an extension, then it's necessary to provide an ExtensionManager, otherwise the loader won't recognize the canister's type.

This adds methods to DfxInterfaceBuilder, as well as a standalone method for extracting the dfx version from the dfx cache path.

Required for https://dfinity.atlassian.net/browse/SDK-1832

How Has This Been Tested?

Tested in dfinity/dfx-extensions#153

Checklist:

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

This is so extension commands can load dfx.json if it references a canister with a type defined by an extension.

See https://dfinity.atlassian.net/browse/SDK-1832
@ericswanson-dfinity ericswanson-dfinity marked this pull request as ready for review November 8, 2024 00:05
@ericswanson-dfinity ericswanson-dfinity requested a review from a team as a code owner November 8, 2024 00:05
@ericswanson-dfinity ericswanson-dfinity enabled auto-merge (squash) November 8, 2024 00:08
@ericswanson-dfinity ericswanson-dfinity merged commit 72cb257 into master Nov 8, 2024
297 checks passed
@ericswanson-dfinity ericswanson-dfinity deleted the ens/dfx-interface-extension-manager branch November 8, 2024 08:23
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.

2 participants