nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: nix-community/nixpkgs-fmt
Pull request #297 (2022-06-14 10:46:29)

Update rnix to 0.10.2
ChangeLog: https://github.com/nix-community/rnix-parser/blob/v0.10.2/CHANGELOG.md#v0102---2022-06-14

Basically fixes support for paths with substitutions where certain
causes wrongly lead to parse errors.

Also adds a regression-test to ensure that these kinds of paths work
fine.

zimbatm: Nice, thank you

Patch:
diff --git a/Cargo.lock b/Cargo.lock
index a2e4273..b2310fa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -331,9 +331,9 @@ checksum = "49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64"
 
 [[package]]
 name = "rnix"
-version = "0.10.1"
+version = "0.10.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "065c5eac8e8f7e7b0e7227bdc46e2d8dd7d69fff7a9a2734e21f686bbcb9b2c9"
+checksum = "8024a523e8836f1a5d051203dc00d833357fee94e351b51348dfaeca5364daa9"
 dependencies = [
  "cbitset",
  "rowan",
diff --git a/Cargo.toml b/Cargo.toml
index 94b09f0..ac7cf73 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,7 @@ repository = "https://github.com/nix-community/nixpkgs-fmt"
 members = [ "./wasm" ]
 
 [dependencies]
-rnix = "0.10.1"
+rnix = "0.10.2"
 smol_str = "0.1.17"
 
 # Dependencies that are used in the binary only


Test patch:
diff --git a/test_data/path-interpolation.bad.nix b/test_data/path-interpolation.bad.nix
new file mode 100644
index 0000000..7c40ede
--- /dev/null
+++ b/test_data/path-interpolation.bad.nix
@@ -0,0 +1,1 @@
+./a/b/${a}-b.nix
diff --git a/test_data/path-interpolation.good.nix b/test_data/path-interpolation.good.nix
new file mode 100644
index 0000000..7c40ede
--- /dev/null
+++ b/test_data/path-interpolation.good.nix
@@ -0,0 +1,1 @@
+./a/b/${a}-b.nix