Comments (8)
Since dfx
supports custom
canisters, not just motoko, this is actually required.
from sdk.
Although need is a strong word. For now, Motoko doesn’t use this feature of the system, so one could argue that dfx
doesn’t have to support it either yet. Definitely not pressing.
from sdk.
Agreed. The same feature was requestd for hfx
a few days ago (https://github.com/dfinity-lab/dfinity/pull/5452), so there is demand now :-)
from sdk.
An external user (Norton Wang) also requested it here:
https://forum.dfinity.org/t/canister-installation-arguments/1254
from sdk.
Agreed. The same feature was requestd for
hfx
a few days ago (dfinity-lab/dfinity#5452), so there is demand now :-)
I wonder whether the 2 requests were somehow linked :)
from sdk.
I wonder whether the 2 requests were somehow linked :)
No way!
from sdk.
#1038 works for single canister install.
I want to discuss how to extend this to install --all
and deploy
. I can think of two options but none are perfect:
- Ignore canisters that requires install arguments in
install --all
anddeploy
- Have a field in
dfx.json
to specify the arguments
With this feature, we are starting to have one-to-many mapping from wasm module to canisters, e.g., I can create several counter canisters with different initial values:
dfx canister install counter '(0)'
dfx canister install counter '(1)'
dfx canister install counter '(2)'
And I should get three canister ids associated with the counter
module. How does dfx manage this mapping?
For my PR, I will just handle the single canister install with only one canister id case, and let the team decide how to support the more general case. WDYT?
from sdk.
part of this is done but the second half should be addressed with #1692
from sdk.
Related Issues (20)
- fetch management canister interface from replica instead of hardcoding it HOT 1
- 'Cannot parse version' when try to debugging dfx executable HOT 1
- Maybe be in file `src/dfx/Cargo.toml` tag version should be "0.17.0" ?
- Missing in documentation about `dfx canister install`
- `dfx build` is much slower than direct usage of `moc`
- `dfx build` and `dfx deploy` should be able to pass additional command line arguments to `moc` HOT 1
- Feature: Download canister .did and .most HOT 4
- Missing `type` attribute for a canister causes panic
- During compilation `"--actor-idl"` appears twice
- Wrong canister principals are generated by `dfx generate` and other HOT 2
- reinstalling canister does not replenish cycle balance
- DFX fails to retrieve the list of canister controllers during SNS proposal launch
- dfx new --frontend cli argument is wrong in the documentation HOT 1
- Can't update replica (to Enable WebAssembly SIMD support) in local HOT 1
- `.env` is not written HOT 3
- Crate libc 0.2.154 is yanked
- Crate prost-derive 0.12.5 is yanked
- Crate ic-cdk 0.13.3 is yanked
- Crate bytes 1.6.0 is yanked
- DFX sometimes omits a canister in `.env`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.