Merge pull request 'verify_cache_dir: only consider non-failed builds (main_binary IS NOT NULL)' (#170) from fix-138 into main

Reviewed-on: #170
This commit is contained in:
Reynir Björnsson 2023-09-11 09:10:39 +00:00
commit a756f2c814
2 changed files with 15 additions and 14 deletions

View file

@ -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'