web3labs / ink-verifier-image

Container image for Ink! smart contracts source code verification
Apache License 2.0
3 stars 2 forks source link

[WSL] CLI tool creates `package` dir with root as owner. #16

Open deuszx opened 1 year ago

deuszx commented 1 year ago

On WSL2, running build-verifiable-ink -i ghcr.io/web3labs/ink-verifier . creates directory that is owned by root and cannot be removed by a use

$ rm -rf package
rm: cannot remove 'package/src/Cargo.toml': Permission denied
rm: cannot remove 'package/src/lib.rs': Permission denied

$ ls -al
total 24
drwxr-xr-x 3 mateusz mateusz 4096 May 17 16:28 .
drwxr-xr-x 7 mateusz mateusz 4096 Apr 14 10:19 ..
-rw-r--r-- 1 mateusz mateusz  967 Apr 14 10:19 Cargo.toml
-rw-r--r-- 1 mateusz mateusz 7206 Apr 14 10:19 lib.rs
drwxr-xr-x 3 root    root    4096 May 17 16:28 package