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 Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
build-paths.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
bundle.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
check.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
circular.sh Add pre-commit checks 2024-03-29 22:57:40 -07:00
common.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
config.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
develop-r8854.sh Merge pull request #9324 from 9999years/fix-8854-take-2 2024-03-07 14:50:43 +01:00
develop.sh Merge pull request #8043 from bobvanderlinden/pr-shell-env 2024-03-04 07:59:32 +01:00
flake-in-submodule.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
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 Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
inputs.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
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 Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
show.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00
unlocked-override.sh Put functional tests in tests/functional 2023-12-01 12:06:43 -05:00