This commit is contained in:
Eelco Dolstra 2022-05-17 14:04:55 +02:00
parent df2aa29690
commit 8be06c9aa1
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -113,15 +113,11 @@ static SourcePath realisePath(EvalState & state, const PosIdx pos, Value & v, co
}();
try {
#if 0
if (!context.empty()) {
auto rewrites = state.realiseContext(context);
// FIXME: check that path.accessor == rootFS?
auto realPath = state.toRealPath(rewriteStrings(path.path, rewrites), context);
// FIXME: return store accessor
return state.rootPath(realPath);
auto realPath = state.toRealPath(rewriteStrings(path.path.abs(), rewrites), context);
return {path.accessor, CanonPath(realPath)};
} else
#endif
return path;
} catch (Error & e) {
e.addTrace(state.positions[pos], "while realising the context of path '%s'", path);