permaweb / ao

The ao component and tools Monorepo - 🐰 🕳️ 👈
https://cookbook_ao.arweave.dev
Other
190 stars 63 forks source link

chore(dev-cli): update publish command to initialize the tags if null #1028

Closed PeterFarber closed 1 month ago

PeterFarber commented 1 month ago

Description

The publish function fails when no tags are supplied because the tag variable has not been initialized. Additionally, we want to include an option to override the Memory-Limit setting, as the current implementation fails to parse this value correctly from the config file. Lastly, the code update (CU) requires support for newer loader formats, such as ['wasm32-unknown-emscripten3', 'wasm32-unknown-emscripten4'].

Proposed Solution

  1. Initialize the tag Variable
    Ensure that the tag array is properly initialized to avoid issues when no tags are supplied.

  2. Memory-Limit Override and Parsing Fix

    • Allow adding the Memory-Limit' flag manually to override theMemory-Limit` value.
    • Correct the config file parsing mechanism to accurately retrieve and set Memory-Limit automatically.
  3. Support for Newer Loader Formats
    Update the CU to include support for loader formats such as wasm32-unknown-emscripten3 and wasm32-unknown-emscripten4.

Acceptance Criteria