Skip to content

Commit 3b714f7

Browse files
authored
Rename Motoko entry points app.mo -> main.mo (#1471)
Aligns the entry-point filename with icp new (icp-cli-templates), mops, the Motoko skill, and Caffeine, which all use lowercase main.mo for the composition root (the analog of Rust's lib.rs). PascalCase remains for exported module files (Types.mo, Counter.mo). - git mv 35 <role>/app.mo -> <role>/main.mo across the Motoko examples (backend/, plus caller/callee, publisher/subscriber for multi-canister). - Update mops.toml [canisters.*] main = paths and their comments. - Update all doc/code references: AGENTS.md (structure, mops snippet, naming rule), example READMEs (hello_world, icrc2-swap, llm_chatbot, parallel_calls, pub-sub, threshold-ecdsa, threshold-schnorr, unity_ii_deeplink), and an icrc.did comment. Verified: mops check passes for hello_world and the multi-canister parallel_calls / pub-sub (both --actor-env-alias). who_am_i already used main.mo. Closes #1463.
1 parent 89ca0c3 commit 3b714f7

78 files changed

Lines changed: 53 additions & 53 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 4 additions & 4 deletions

motoko/backend_only/mops.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ core = "2.5.0"
1111
args = ["--default-persistent-actors", "-W=M0236,M0237,M0223"]
1212

1313
[canisters.backend]
14-
main = "backend/app.mo"
14+
main = "backend/main.mo"

motoko/basic_bitcoin/mops.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ ic = "4.0.0"
1010
args = [ "--default-persistent-actors", "-W=M0236,M0237,M0223" ]
1111

1212
[canisters.backend]
13-
main = "backend/app.mo"
13+
main = "backend/main.mo"

motoko/canister_factory/mops.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ic = "4.0.0"
1212
args = ["--default-persistent-actors", "-W=M0236,M0237,M0223"]
1313

1414
[canisters.backend]
15-
main = "backend/app.mo"
15+
main = "backend/main.mo"

motoko/canister_logs/mops.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ic = "4.0.0"
1212
args = ["--default-persistent-actors", "-W=M0236,M0237,M0223"]
1313

1414
[canisters.backend]
15-
main = "backend/app.mo"
15+
main = "backend/main.mo"

0 commit comments

Comments
 (0)