qryxip / cargo-equip

A Cargo subcommand to bundle your code into one `.rs` file for competitive programming
Apache License 2.0
76 stars 10 forks source link

Could not execute process curl #187

Open TonalidadeHidrica opened 1 year ago

TonalidadeHidrica commented 1 year ago

I tried to equip a source code that depends on whiteread. Then I had the following message:

❮ cargo equip --minify libs --mine github.com/krdln --remove docs --remove comments | win32yank.exe -i
     Running `/home/username/.cargo/bin/rustup run nightly cargo udeps --output json -p crate-name --bin alds1_14_b`
    Checking crate-name v0.1.0
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
info: Loading save analysis from "/path/to/alds1_14_b-a56770b0284a7106.json"
    Bundling the code
warning: `package.authors` are no longer used to skip Copyright and License Notices
warning: instead, add `--mine github.com/{your username}` to the arguments
    Checking the license of `whiteread 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)`
error: could not bundle the code

- `whiteread 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)` as `crate::__cargo_equip::crates::whiteread`

note: attempted to bundle with the following crate(s), which are available on AtCoder. to exclude them from bundling, run with `--exclude-atcoder-crates`

- `whiteread 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)`

Caused by:
  could not execute process `/usr/bin/curl 'https://crates.io/api/v1/crates/whiteread/owners' -L` (never executed)

Caused by:
  No such file or directory (os error 2)

But running the curl succeeds:

❮ /usr/bin/curl 'https://crates.io/api/v1/crates/whiteread/owners' -L
{"users":[{"avatar":"https://avatars.githubusercontent.com/u/3074996?v=4","id":1959,"kind":"user","login":"krdln","name":"Michał Krasnoborski","url":"https://github.com/krdln"}]}⏎

What am I getting wrong? Is it an issue of permission?