titzer / titzer/wizard-engine

Add ability to map dirs by name

Open
#482 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
512
Forks
51
Avg merge
7h 34m
Merged PRs (30d)
21

Description

The wasi-testsuite used to run tests from a current working directory such that the dirs to expose to the guest have the same name to the guest and host, i.e. that --dir foo exposes /foo to the guest and expects that ./foo exists. However I am refactoring to pass mappings explicitly: i.e. to be able to expose /tmp/foo on the host as bar on the guest. This allows me to print a list of commands that failed at the end of a test run.

Wasmtime already supports this, via the odd syntax --dir /path/to/host/thing::guest-location/possibly-with-subdirs/etc. WAMR supports it too, calling the option --map-dir. Would it be possible to add support for this to Wizard? :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Wizard's existing --dir command-line handling and the code that exposes host directories to the guest. Compare its current same-name behavior with the requested host-to-guest mapping syntax, and verify that a host path can be exposed under a different guest path, including nested guest locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.