libstore: de-ref {Derived,Built}Path::Built drvPath
they're no longer recursive, so this is perfectly fine. Change-Id: If565a557f2c2074e2a96a7f89c51ff1c51146b36
This commit is contained in:
@@ -78,7 +78,7 @@ TEST(NixStringContextElemTest, built_opaque) {
|
||||
auto * p = std::get_if<NixStringContextElem::Built>(&elem.raw);
|
||||
ASSERT_TRUE(p);
|
||||
ASSERT_EQ(p->output, "foo");
|
||||
ASSERT_EQ(*p->drvPath, (SingleDerivedPath::Opaque {
|
||||
ASSERT_EQ(p->drvPath, (SingleDerivedPath::Opaque {
|
||||
.path = StorePath { built.substr(5) },
|
||||
}));
|
||||
ASSERT_EQ(elem.to_string(), built);
|
||||
|
||||
Reference in New Issue
Block a user