wit-deps icon indicating copy to clipboard operation
wit-deps copied to clipboard

`:` is not a valid syntax for windows, wit deps cannot have name which contain : , example wasi:io

Open Nanashi-lab opened this issue 9 months ago • 0 comments

: is not a valid syntax for windows file/folder, projects which depend on example wasi:io fail on Windows

Results of cargo wit-deps update from Windows

[cargo-make] INFO - cargo make 0.37.24
[cargo-make] INFO -
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: wit
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Execute Command: "wit-deps" "update"
 INFO fetch `https://github.com/WebAssembly/wasi-io/archive/v0.2.0.tar.gz` into `wit/deps\wasi:io`
Error: failed to lock dependencies

Caused by:
    0: failed to lock deps to `wit/deps`
    1: failed to lock `wasi:io`
    2: failed to unpack contents of `https://github.com/WebAssembly/wasi-io/archive/v0.2.0.tar.gz`
    3: failed to create `wit/deps\wasi:io`: The directory name is invalid. (os error 267)
Error while executing command, exit code: 1

cargo wit-deps update from within wsl but file in windows filesystem succeeds but it creates weird symbols

example - wasiio

cargo wit-deps update from within wsl, file in wsl filesystem works fine.

Nanashi-lab avatar May 01 '25 04:05 Nanashi-lab