diff --git a/lix/libutil/experimental-features/no-url-literals.md b/lix/libutil/experimental-features/no-url-literals.md deleted file mode 100644 index 2c183900e..000000000 --- a/lix/libutil/experimental-features/no-url-literals.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -name: no-url-literals -internalName: NoUrlLiterals ---- -Disallow unquoted URLs as part of the Nix language syntax. The Nix -language allows for URL literals, like so: - -``` -$ nix repl -Welcome to Nix 2.15.0. Type :? for help. - -nix-repl> http://foo -"http://foo" -``` - -But enabling this experimental feature will cause the Nix parser to -throw an error when encountering a URL literal: - -``` -$ nix repl --extra-experimental-features 'no-url-literals' -Welcome to Nix 2.15.0. Type :? for help. - -nix-repl> http://foo -error: URL literals are disabled - -at «string»:1:1: - -1| http://foo - | ^ - -``` - -While this is currently an experimental feature, unquoted URLs are -being deprecated and their usage is discouraged. - -The reason is that, as opposed to path literals, URLs have no -special properties that distinguish them from regular strings, URLs -containing parameters have to be quoted anyway, and unquoted URLs -may confuse external tooling. diff --git a/lix/libutil/meson.build b/lix/libutil/meson.build index 1783a6f2c..c1f4d82d5 100644 --- a/lix/libutil/meson.build +++ b/lix/libutil/meson.build @@ -163,7 +163,6 @@ experimental_feature_definitions = files( 'experimental-features/flakes.md', 'experimental-features/lix-custom-sub-commands.md', 'experimental-features/nix-command.md', - 'experimental-features/no-url-literals.md', 'experimental-features/pipe-operator.md', 'experimental-features/read-only-local-store.md', 'experimental-features/repl-automation.md',