From 2308f200c84859106daa5c809bcd5209ef13874c Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Fri, 19 Dec 2025 04:51:43 +0300 Subject: [PATCH] libstore/store-api: Do not query all substituters for substitutable path infos This was broken in 11d7c80370a01e96bceb9dbe5124d3e91c841c7d. --- src/libstore/store-api.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 660370d1b..fc0566715 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -454,6 +454,8 @@ void Store::querySubstitutablePathInfos(const StorePathCAMap & paths, Substituta .downloadSize = narInfo ? narInfo->fileSize : 0, .narSize = info->narSize, }); + + break; /* We are done. */ } catch (InvalidPath &) { } catch (SubstituterDisabled &) { } catch (Error & e) {