diff options
| author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2025-09-22 11:10:18 +0100 |
|---|---|---|
| committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2025-09-22 12:00:35 +0100 |
| commit | 76c618ecddf2b7bafc5805282972fa1036717211 (patch) | |
| tree | baf40d6e3a3173aa35b0dd2e5688a9e0627feaf3 /pkgs/development/python-modules/rangehttpserver | |
| parent | 734d9fee04c01a56b1e1464f53219625d40e3ef5 (diff) | |
nixos-rebuild-ng: do not parse the path part from Flake as a Path
When I first wrote the Flake code for `nixos-rebuild-ng`, I set the
Flake parser to normalize the `foo` part from `foo#host` as a Python's
`pathlib.Path` if this looked like a path. The idea originally was to
improve type-safety and make it easier to compose the path later if
needed.
But, in retrospect this is the wrong thing to do here because there are
so many things that `nix` can do in those cases:
- `foo` can be either a directory or a Flake registry
- #433726
So let's stop being smart here and just assume a plain string. We don't
really get a lot of type-safety or any of the nice things pathlib gives
to us since there isn't any path manipulation going on. Let `nix` itself
handle any translation here.
Fix: #433726.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
