{
  "name": "migrating-to-moc-2",
  "title": "Migrating to moc 2",
  "category": "Motoko",
  "description": "Move a Motoko project from moc 1 to moc 2 — toolchain bump, removed compiler flags, and the fix for every new error. Load when bumping the moc toolchain to a 2.x release, when code that built on moc 1 fails on moc 2, or when one codebase must compile with both.",
  "license": "Apache-2.0",
  "compatibility": "moc >= 2.0.0, mops >= 3.0.0",
  "updated": "2026-11-12T17:18:34.000Z",
  "urls": {
    "html": "https://skills.internetcomputer.org/skills/migrating-to-moc-2/",
    "markdown": "https://skills.internetcomputer.org/.well-known/skills/migrating-to-moc-2/SKILL.md",
    "json": "https://skills.internetcomputer.org/api/skills/migrating-to-moc-2.json",
    "source": "https://github.com/dfinity/icskills/blob/580f70e39623138150284c9ab4cf096636c19b1d/skills/migrating-to-moc-2/SKILL.md"
  },
  "publisher": {
    "name": "DFINITY Foundation",
    "url": "https://dfinity.org"
  },
  "canonicalRepo": {
    "name": "dfinity/icskills",
    "url": "https://github.com/dfinity/icskills"
  }
}
