Commit a63834a
authored
Handle multiple versions during
* Handle multiple versions during `wasm-tools component wit`
This commits makes sure that if a component depends on multiple versions
of a package that it is handled correctly. It fixes the behavior by
appending the version string in case there are multiple packages with
the same name and namespaces specifically when there is only one
namespace for the given package name.
Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
* add tests
Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
---------
Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>wasm-tools component wit (#1665)1 parent 021389c commit a63834a
File tree
3 files changed
+46
-3
lines changed- src/bin/wasm-tools
- tests/cli
3 files changed
+46
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
651 | 652 | | |
652 | | - | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
653 | 662 | | |
654 | | - | |
655 | | - | |
656 | 663 | | |
657 | 664 | | |
658 | 665 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments