Commit 753277a
committed
Adjust rules for canonical interface names
Tweak the string-splitting to more closely match the intent of versions
found in tooling, specifically:
* Document that build metadata (`+foo` in `0.0.1+foo`) is always split
out and not part of the canonical name.
* Don't split out pre-release information since pre-release versions are
incompatible with all other versions.
This additionally matches preexisting merging behavior in
`wit-component` as discovered in bytecodealliance/wasm-tools#26221 parent 4acb0de commit 753277a
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2883 | 2883 | | |
2884 | 2884 | | |
2885 | 2885 | | |
2886 | | - | |
2887 | | - | |
2888 | | - | |
2889 | | - | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
2890 | 2895 | | |
| 2896 | + | |
2891 | 2897 | | |
2892 | | - | |
2893 | | - | |
2894 | | - | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
2895 | 2903 | | |
2896 | 2904 | | |
2897 | 2905 | | |
| |||
0 commit comments