fix: fetchGit

This commit is contained in:
2026-02-19 21:58:19 +08:00
parent b57fea3104
commit 45096f5254

View File

@@ -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;