Skip to content

URL handling tech debt #9603

@roberth

Description

@roberth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfetchingNetworking with the outside (non-Nix) world, input locking
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions