Skip to content

warn about unknown flake url paramaters #10370

@lolbinarycat

Description

@lolbinarycat

Is your feature request related to a problem? Please describe.
recently i made a typo and accidentally tried to install a package from github:nixos/nixpkgs?revnixpkgs-unstable (notice the lack of =), and nix just built the whole thing successfully (i assume using the master branch instead)

Describe the solution you'd like
a warning should be displayed if there are unknown keys in a url-style flake reference (eg. "warning: unknown flake attribute XXX, check your spelling or update nix")

at least for github: or flake: urls, i assume for git+http url unrecognized paramaters are just passed to the http server.

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposalfetchingNetworking with the outside (non-Nix) world, input lockinggood first issueQuick win for first-time contributorsidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions