From 45096f5254c880f89a5e4e7d18c136dab1309e85 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Thu, 19 Feb 2026 21:58:19 +0800 Subject: [PATCH] fix: fetchGit --- nix-js/runtime-ts/src/builtins/io.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-js/runtime-ts/src/builtins/io.ts b/nix-js/runtime-ts/src/builtins/io.ts index 91bc5bc..895688a 100644 --- a/nix-js/runtime-ts/src/builtins/io.ts +++ b/nix-js/runtime-ts/src/builtins/io.ts @@ -185,7 +185,7 @@ export const fetchGit = (args: NixValue): NixAttrs => { ]); } const attrs = forceAttrs(args); - const url = forceStringValue(select("attrs", ["url"])); + const url = forceStringValue(select(attrs, ["url"])); const gitRef = attrs.has("ref") ? forceStringValue(attrs.get("ref") as NixValue) : null; const rev = attrs.has("rev") ? forceStringValue(attrs.get("rev") as NixValue) : null; const shallow = attrs.has("shallow") ? forceBool(attrs.get("shallow") as NixValue) : false;