Skip to content

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

@rszyma

Description

@rszyma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions