Improved support for relative path inputs #641

Open
opened 2025-01-22 20:54:48 +00:00 by isabelroses · 1 comment
Member

Improved support for relative paths.

Describe the solution you'd like

Added support for relative file paths under the same repo.

e.g. inputs.foo.url = "path:./subdir"

This would improve the life for aux and catppuccin/nix see: 866b8902c9/tidepool/flake.nix (L4) and b5309c13e7/dev/flake.nix (L7)

Additional context

Upstream PR https://github.com/NixOS/nix/pull/10089

## Is your feature request related to a problem? Please describe. Improved support for relative paths. ## Describe the solution you'd like Added support for relative file paths under the same repo. e.g. `inputs.foo.url = "path:./subdir"` This would improve the life for aux and catppuccin/nix see: https://git.auxolotl.org/auxolotl/labs/src/commit/866b8902c975a1aaec547445976dd39d60def4ab/tidepool/flake.nix#L4 and https://github.com/catppuccin/nix/blob/b5309c13e77b881e70d958108908042dbadc684b/dev/flake.nix#L7 ## Additional context Upstream PR https://github.com/NixOS/nix/pull/10089
Owner

This is basically guaranteed to cause visible behaviour changes in flakes, which is somewhat of a nightmare historically for us. I'm worried about regression potential. Also, it's quite unlikely that that code can be ported in a very intact form due to our completely different internals in this area.

Either way I'm not implementing this, but not opposed to it, it just seems really unpleasant to do from my past experiences dealing with flakes.

This is basically guaranteed to cause visible behaviour changes in flakes, which is somewhat of a nightmare historically for us. I'm worried about regression potential. Also, it's quite unlikely that that code can be ported in a very intact form due to our completely different internals in this area. Either way I'm not implementing this, but not opposed to it, it just seems really unpleasant to do from my past experiences dealing with flakes.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#641
No description provided.