Support circular dependency in dfx build
#2630
chenyan-dfinity
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if there is a circular dependency in
dfx.json
,dfx build
will abort withThe dependency analyzer failed: Found circular dependency: backend
.Since we create all canister ids first, we should be able to handle circular dependency. This is useful for access control, e.g.
backend
will only respond to calls from the frontend, and not from other principals.In Motoko playground, the backend can create new canisters with its own cycles. We want to prevent other people from calling this API, so that people cannot create canisters for free using this API.
Beta Was this translation helpful? Give feedback.
All reactions