From 243836ed0a0b963eebd033d109e6cb817d67fde4 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sat, 15 Nov 2025 15:52:43 +0100 Subject: [PATCH] libutil: remove the no-url-literals experimental feature URL literals were deprecated in 278fddc317cf0cf4d3602d0ec0f24d1dd281fadb, effectively stabilizing the experimental feature. Enabling it has no effect any more. Remove it. Change-Id: I8fbca03b1a2be6a8cddfce644043ac0a6a6a6964 --- .../experimental-features/no-url-literals.md | 39 ------------------- lix/libutil/meson.build | 1 - 2 files changed, 40 deletions(-) delete mode 100644 lix/libutil/experimental-features/no-url-literals.md 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',