Skip to content

Disallow writing path input to lock file #12004

Open
@roberth

Description

Is your feature request related to a problem?

Host paths are not reproducible, so they're not a good source for flake inputs.

Proposed solution

Disallow writing path input to lock file. Throw an error.
Maybe have a flag --allow-unreproducible-local-path-input for the use case where users are testing something locally and they can't pass --override-input for whatever reason (getFlake, non-interactive Nix use, direnv, not-great CLIs, etc).

Alternative solutions

Additional context

May also solve

Checklist


Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposalfetchingNetworking with the outside (non-Nix) world, input lockingflakes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions