From a333d4eb9d2633800bec8e352c9accbfb64e14f6 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Sat, 9 Sep 2023 10:44:29 +0200 Subject: [PATCH] verify_cache_dir: only consider where main_binary is present --- bin/builder_db_app.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/builder_db_app.ml b/bin/builder_db_app.ml index af27e2f..10ff322 100644 --- a/bin/builder_db_app.ml +++ b/bin/builder_db_app.ml @@ -454,6 +454,7 @@ module Verify_cache_dir = struct ba_opam_switch.sha256 hash_opam_switch, ba_debug_bin.sha256 hash_debug_bin FROM build AS b + WHERE b.main_binary IS NOT NULL LEFT JOIN build_artifact AS ba_opam_switch ON ba_opam_switch.build = b.id AND ba_opam_switch.filepath = 'opam-switch'