Skip to content

Omnix fails to parse nix --version #488

Description

@pizzapim

Omnix started failing to parse my server's Nix version:

✍️ Overwriting server "build-cache"
👟 Reading [om.ci](http://om.ci/) config from flake
❄️ nix eval --json '.#om' --quiet --quiet️
👟 Gathering NixInfo
❄️ nix --version️
Error: Unable to gather nix info
Caused by:
0: Nix command error: Failed to decode command stdout (from_str error): Failed to parse string: Parse error (int): `nix --version` cannot be parsed
1: Failed to decode command stdout (from_str error): Failed to parse string: Parse error (int): `nix --version` cannot be parsed
2: Failed to parse string: Parse error (int): `nix --version` cannot be parsed

My Nix version is:

# nix --version
nix (Nix) 2.31.2+1

Perhaps it's failing on the +1? This server is running Nixpkgs unstable

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