mario-eth / soldeer

Solidity Package Manager written in rust
MIT License
241 stars 26 forks source link

`forge soldeer push` with `--dry-run true` has error: "No such file or directory" #183

Closed ericglau closed 2 months ago

ericglau commented 2 months ago

Using this repository: https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades with forge version forge 0.2.0 (280aa26 2024-09-16T00:21:37.361283000Z)

When I run this command: forge soldeer push openzeppelin-foundry-upgrades~0.3.4 --dry-run true

The following error occurs:

🦌 Running Soldeer push with dry-run, a zip file will be available for inspection 🦌
Pushing a dependency openzeppelin-foundry-upgrades-0.3.4:
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Location: /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/soldeer-0.3.4/src/versioning.rs:79

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   2: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   3: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   4: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   5: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   6: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   7: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   8: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   9: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  10: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  11: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  12: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  13: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  14: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  15: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  16: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  17: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  18: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  19: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
zsh: abort      forge soldeer push openzeppelin-foundry-upgrades~0.3.4 --dry-run true
ericglau commented 2 months ago

This worked when I use --dry-run without true:

forge soldeer push openzeppelin-foundry-upgrades~0.3.4 --dry-run

If this is the intended behavior, the documentation should be updated at:

mario-eth commented 2 months ago

fixed, thanks for reporting 🫡