aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2019-10-28 21:40:02 +0100
committerzimbatm <zimbatm@zimbatm.com>2019-10-28 21:40:02 +0100
commit9a2505965667267f03a8385926f3b31a47732ed5 (patch)
treeb1318ab99ed777d5cb48fe62381c5f6c0ba73b71
parentd407f4d15f86aca585e0edebc5bc74ab8b1bebd1 (diff)
findDerivationFilename: add FIXME
-rw-r--r--src/libexpr/attr-path.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/attr-path.cc b/src/libexpr/attr-path.cc
index c86dbeebb..06b472d8b 100644
--- a/src/libexpr/attr-path.cc
+++ b/src/libexpr/attr-path.cc
@@ -103,6 +103,8 @@ Pos findDerivationFilename(EvalState & state, Value & v, std::string what)
throw Error("package '%s' has no source location information", what);
}
+ // FIXME: is it possible to extract the Pos object instead of doing this
+ // toString + parsing?
auto pos = state.forceString(*v2);
auto colon = pos.rfind(':');