Skip to content

bug: unable to pass empty --option value #315

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

Open
rszyma opened this issue Mar 12, 2025 · 1 comment
Open

bug: unable to pass empty --option value #315

rszyma opened this issue Mar 12, 2025 · 1 comment

Comments

@rszyma
Copy link

rszyma commented Mar 12, 2025

Passing empty nixConfig value to nix is normally allowed, but it isn't possible when using deploy-rs, e.g.:

deploy . -- --option build-users-group ''

error: The argument '<extra-build-args>...' requires a value but none was supplied

USAGE:
    deploy [FLAGS] [OPTIONS] [--] [ARGS]

For more information try --help

This is probably a bug in clap. It looks like we're using an archaic clap version "3.0.0-beta.2", while there's already 4.5.32 out. Maybe we could try bump to latest version and see it the issue is fixed. I've tried bumping it latest version, but I'm getting an error from cargo that it's too old, so a flake bump would be needed too, to bump cargo.

error: package `clap v4.5.32` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.73.0
@Chaostheorie
Copy link

Chaostheorie commented Mar 27, 2025

It seems your guess was correct, it appears to work with the updates from #317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants