lix/tests/functional/flakes
Delan Azabani b2944d93a6 Reject fully-qualified URLs in 'from' argument of nix registry add
We previously allowed you to map any flake URL to any other flake URL,
including shorthand flakerefs, indirect flake URLs like `flake:nixpkgs`,
direct flake URLs like `github:NixOS/nixpkgs`, or local paths.

But flake registry entries mapping from direct flake URLs often come
from swapping the 'from' and 'to' arguments by accident, and even when
created intentionally, they may not actually work correctly.

This patch rejects those URLs (and fully-qualified flake: URLs), making
it harder to swap the arguments by accident.

Fixes #181.

Change-Id: I24713643a534166c052719b8770a4edfcfdb8cf3
2024-06-29 05:11:31 +00:00
..
absolute-paths.sh
build-paths.sh
bundle.sh
check.sh
circular.sh Add pre-commit checks 2024-03-29 22:57:40 -07:00
common.sh
config.sh
develop-r8854.sh Merge pull request #9324 from 9999years/fix-8854-take-2 2024-03-07 14:50:43 +01:00
develop.sh
flake-in-submodule.sh
flake-registry.sh tests/flake-registry: Fix occasional deadlocks 2024-06-12 15:34:23 -07:00
flakes.sh Reject fully-qualified URLs in 'from' argument of nix registry add 2024-06-29 05:11:31 +00:00
follow-paths.sh tests/flakes/follow-paths: test that warning about non-existent input works recursively 2024-05-03 22:54:38 +00:00
init.sh
inputs.sh
mercurial.sh tests: actually run mercurial tests 2024-05-04 16:48:07 +02:00
run.sh Add pre-commit checks 2024-03-29 22:57:40 -07:00
search-root.sh
show.sh
unlocked-override.sh