Don't invoke opam query for targets other than release.