You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to execute with ./time.rs or cargo script time.rs, it fails with internal error: Permission denied (os error 13) because it tries to run /home/user/.cargo/binary-cache/release/deps/libtime-2d0d7bb318809c2f.rlib instead of .cargo/binary-cache/release/time.
Some time ago, this worked. I’d guess the error lies in cargo_target_by_message, picking the wrong line because the target.name is the same as the package name.
Workaround: Renaming the script to another name lets it run fine.
(Paths/Invocations should be adjusted for rust-script of course)
The text was updated successfully, but these errors were encountered:
This bug still exists in rust-script: DanielKeep/cargo-script#57
Copied:
Can be reproduced with the following script:
Filename:
time.rs
When trying to execute with
./time.rs
orcargo script time.rs
, it fails with internal error: Permission denied (os error 13) because it tries to run/home/user/.cargo/binary-cache/release/deps/libtime-2d0d7bb318809c2f.rlib
instead of.cargo/binary-cache/release/time
.Some time ago, this worked. I’d guess the error lies in
cargo_target_by_message
, picking the wrong line because the target.name is the same as the package name.Workaround: Renaming the script to another name lets it run fine.
(Paths/Invocations should be adjusted for rust-script of course)
The text was updated successfully, but these errors were encountered: