Can I implement moc version select as a dfx extension?

Waiting for for the dfx extension to be released and I wonder if it is possible to implement an extension that will use mocv to select moc version for canister building?

How I see it:

  1. One time? For each project?
dfx extension install mocv
  1. dfx.json:
  "moc": "0.9.8"

and on each Motoko canister deploy extension will resolve path to the specified moc version binary

1 Like