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

Cannot compile a non-created canister #4085

Open
vporton opened this issue Jan 29, 2025 · 0 comments
Open

Cannot compile a non-created canister #4085

vporton opened this issue Jan 29, 2025 · 0 comments
Labels
needs-triage This ticket needs investigation.

Comments

@vporton
Copy link
Contributor

vporton commented Jan 29, 2025

Building canister is possible only after it's created. That's wrong, because the user may want for example receive WASM code of canister (e.g. for later installation, as I do in my IC package manager) without actually creating the canister.

This is especially bad on production where creating canister requires to spend funds.

I tried the following:

$ dfx new --no-frontend --type motoko build-bug
$ cd build-bug
$ dfx build build-bug-backend
Error: Cannot find canister id. Please issue 'dfx canister create build-bug-backend'.

I expected to see this happen: building the canister.

Instead, this happened: canister cannot be built.

Meta

dfx --version:

dfx 0.20.0-icsystemtest.0+rev636.dirty-76457e03
@vporton vporton added the needs-triage This ticket needs investigation. label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This ticket needs investigation.
Projects
None yet
Development

No branches or pull requests

1 participant