Skip to content

flake-info only accepts nixos-* Git references #849

@uncenter

Description

@uncenter

Despite what the docs say:

It takes any valid git reference to the upstream [`nixos/nixpkgs`](https://github.com/iixos/nixpkgs/) repo as an argument and produces a complete output.

The command does not accept any Git reference, just ones that are valid when prepended with nixos-. This is reflected/implemented here:

"https://api.github.com/repos/nixos/nixpkgs/branches/nixos-{}",

So something like nixpkgs-unstable would lead to a 404 request panic because nixos-nixpkgs-unstable is not a real reference.

So this example provided does not work:

$ flake-info nixpkgs nixos-21.05

You would need to do flake-info nixpkgs 21.05 instead.

It's an easy fix to remove the nixos- prefix in the source code line highlighted above, however I am not sure what else would need to be changed to ensure the search instance deploys correctly or wherever else this command is used still functions.

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