We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1db7a7d commit 6d186e5Copy full SHA for 6d186e5
src/libcmd/installables.cc
@@ -721,7 +721,14 @@ StorePathSet Installable::toDerivations(
721
: throw Error("argument '%s' did not evaluate to a derivation", i->what()));
722
},
723
[&](const DerivedPath::Built & bfd) {
724
- drvPaths.insert(resolveDerivedPath(*store, *bfd.drvPath));
+ drvPaths.insert(std::visit(overloaded {
725
+ [&](const SingleDerivedPath::Opaque o) -> StorePath {
726
+ return o.path;
727
+ },
728
+ [&](const SingleDerivedPath::Built b) -> StorePath {
729
+ throw Error("argument '%s' did not evaluate to output of dynamic derivation '%s' which is not yet built.", i->what(), b.to_string(*store));
730
731
+ }, tryResolveDerivedPath(*store, *bfd.drvPath).raw()));
732
733
}, b.path.raw());
734
0 commit comments