Skip to content

EXTRA_NIX_ARGS are not universal (e.g.: --rebuild) #440

Description

@srid

Consider (after #439),

om ci run github:srid/haskell-template -- --refresh --override-input flake-parts github:hercules-ci/flake-parts --rebuild
...

❄️  nix eval --refresh --override-input flake-parts github:hercules-ci/flake-parts --rebuild --json 'github:srid/haskell-template#om' --quiet --quiet️
Error: Nix command error: Command error: Process exited unsuccessfully. exit_code=Some(1) stderr=error: unrecognised flag '--rebuild'
Try 'nix --help' for more information.

Here, we pass --rebuild, but that doesn't make sense in all Nix commands, such as nix eval. But omnix unconditionally passes them to all anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions