treewide: don't resolveDerivedPath opaque paths

resolution of opaque paths is just an expensive `->path`.

Change-Id: I0c8d8b908f358d0bd26d1dcba84b2de6cbdc7c29
This commit is contained in:
eldritch horrors
2025-05-12 13:37:54 +02:00
parent f5e2e78266
commit 68dfcfc6a4
6 changed files with 9 additions and 15 deletions
+1 -3
View File
@@ -127,9 +127,7 @@ void prim_getContext(EvalState & state, Value * * args, Value & v)
contextInfos[std::move(d.drvPath)].allOutputs = true;
},
[&](NixStringContextElem::Built && b) {
// FIXME should eventually show string context as is, no
// resolving here.
auto drvPath = state.aio.blockOn(resolveDerivedPath(*state.ctx.store, *b.drvPath));
auto drvPath = b.drvPath->path;
contextInfos[std::move(drvPath)].outputs.emplace_back(std::move(b.output));
},
[&](NixStringContextElem::Opaque && o) {