alexliesenfeld / httpmock

HTTP mocking library for Rust
https://httpmock.rs
MIT License
471 stars 42 forks source link

latest docker image failing #83

Closed aaronenberg closed 1 year ago

aaronenberg commented 1 year ago

Hey, thanks for this awesome tool.

I am seeing this error when running with the latest docker image:

$ httpmock --expose true
error: unexpected argument 'true' found

Usage: httpmock [OPTIONS]

For more information, try '--help'.

This does not happen with image tagged alexliesenfeld/httpmock:0.6.2

aaronenberg commented 1 year ago

my guess is this broke when upgrading to clap=4.0

aaronenberg commented 1 year ago

I would suggest updating the Dockerfile to ENTRYPOINT ["httpmock", "--expose"] removing the "true" part because it seems like there is some extra clap setup needed to parse values for bool arguments

alexliesenfeld commented 1 year ago

Thanks for reaching out. Yes, the Docker image needed an update. It was updated today with https://github.com/alexliesenfeld/httpmock/pull/86 and v0.6.8.