[Nix#9603] URL handling tech debt #87

Open
opened 2024-03-16 06:44:50 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#9603

Describe the problem

The way Nix handles URIs/URLs can be ad hoc or inconsistent at times.

  • URI prefixes aren't canonicalized
  • URI prefixes don't handle ? query parameters, unless they can be mistaken for path components
  • URI strings should be pushed to the program's boundary as much as possible
  • URI/URL naming is unclear
  • Parsing / canonicalization doesn't change the scheme to lower case (and probably more)

Expected behavior

Handle URIs and/or URLs consistently, compliantly, and only treat the as strings at the very boundary; where it's unavoidable.

nix-env --version output

Additional context

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/9603 **Describe the problem** The way Nix handles URIs/URLs can be ad hoc or inconsistent at times. - URI prefixes aren't canonicalized - URI prefixes don't handle `?` query parameters, unless they can be mistaken for path components - URI strings should be pushed to the program's boundary as much as possible - URI/URL naming is unclear - Parsing / canonicalization doesn't change the scheme to lower case (and probably more) **Expected behavior** Handle URIs and/or URLs consistently, compliantly, and only treat the as strings at the very boundary; where it's unavoidable. **`nix-env --version` output** **Additional context** - This work was scoped out from https://github.com/NixOS/nix/pull/9547. **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
stability
bug
imported
labels 2024-03-16 06:44:50 +00:00
jade added this to the post-release milestone 2024-03-25 04:51:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#87
No description provided.