Versioned dependencies (via `--dep`) are not found
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue with aaugh.wac and the two wac resolve commands, comparing versioned and unversioned --dep values. Trace the dependency-resolution and error-reporting entry points to determine whether versioned dependencies are supported; done means either the versioned dependency resolves or the error clearly explains the required syntax or limitation.
Written by the indexing model from the issue text.
Description
I have the following WAC document:
package root:component-val@0.0.1 targets fermyon:spin/http-trigger@2.0.0;
let c = new root:component { ... };
export c...;
I resolve it like so:
wac resolve aaugh.wac --registry wa.dev --dep "root:component=./target/wasm32-wasi/release/calculator_spin.wasm"
And life is good. But if I change root:component to have a version:
package root:component-val@0.0.1 targets fermyon:spin/http-trigger@2.0.0;
let c = new root:component@0.0.1 { ... };
export c...;
and invoke with the version:
wac resolve aaugh.wac --registry wa.dev --dep "root:component@0.0.1=./target/wasm32-wasi/release/calculator_spin.wasm"
I get:
error: failed to resolve document
× package `root:component` does not exist in the registry
╭─[aaugh.wac:3:13]
2 │
3 │ let c = new root:component@0.0.1 { ... };
· ──────────┬─────────
· ╰── package `root:component` does not exist
4 │
╰────
(If I revert the command line to the unversioned, uh, version, same error.)
Is this behaviour intentional? If so, could the error indicate more specifically what the user should do to fix it?
- Dominant language
- Rust
- Stars
- 208
- Forks
- 41
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bytecodealliance/wac
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
bytecodealliance/wac#181 · 7 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
bytecodealliance/wac#170 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
bytecodealliance/wac#169 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
bytecodealliance/wac#166 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
bytecodealliance/wac#165 ·
All issues in bytecodealliance/wac
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheLarkInn/aipm#2413 ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
todo:ticket
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
taikoxyz/taiko-mono#22168 · 1 comment ·