Skip to content
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

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

Open
uncenter opened this issue Nov 11, 2024 · 0 comments
Open

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

uncenter opened this issue Nov 11, 2024 · 0 comments

Comments

@uncenter
Copy link
Member

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.

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

1 participant