-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
featureFeature request or proposalFeature request or proposalidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.The given proposal has been discussed and approved by the Nix team. An implementation is welcome.languageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etc
Description
Is your feature request related to a problem? Please describe.
Path values are unfit for use as a "path string" replacement because for example
''
HomeDirs: ${/home}
''tries to add /home to the store.
In my experience, the only appropriate use is for referencing source files and locations within a repository. These path values are all created with relative path literals.
Describe the solution you'd like
Add an experimental feature flag or setting that disables absolute path literals such as /. and /home or /var/lib/foo.
Describe alternatives you've considered
- Status quo. Keep telling users not to write absolute path literals
- Deprecate them even more. Users would have to opt out of this flag to use
/..
Additional context
Priorities
Add 👍 to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureFeature request or proposalFeature request or proposalidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.The given proposal has been discussed and approved by the Nix team. An implementation is welcome.languageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etc