-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unshackle Spin from Clap 3 #2885
Comments
More related links:
|
I was having a think about this and wondered to myself "how did this ever work in Clap 3?" Well reader, it doesn't: $ spin up --listen --direct-mounts localhost:9876
...
Serving http://127.0.0.1:9876 |
Some options:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've had two failed attempts at updating our dependency on Clap from version 3 to version 4:
The issue is a breaking change from clap 3 to 4 which does not have a known work around. Clap 4 doesn't lazily evaluate args like Clap 3 did, and once it discovers an arg that can only go into the trigger_args bucket of otherwise unknown args, it starts slurping up everything else and putting it into trigger_args.
This means the following used to work but no longer does:
This does not work because as soon as --some-arg-meant-for-the-trigger is seen, everything gets lumped into trigger_args. If
--env
is put first, than things work as expected.The text was updated successfully, but these errors were encountered: