diff --git a/haskell/cabal.bzl b/haskell/cabal.bzl index cb19759b96..f40d9c4954 100644 --- a/haskell/cabal.bzl +++ b/haskell/cabal.bzl @@ -524,13 +524,14 @@ def _haskell_cabal_library_impl(ctx): if with_profiling: outputs.append(profiling_library) + (_, runghc_manifest) = ctx.resolve_tools(tools = [ctx.attr._runghc]) json_args = ctx.actions.declare_file("{}_cabal_wrapper_args.json".format(ctx.label.name)) ctx.actions.write(json_args, c.args.to_json()) ctx.actions.run( executable = c.cabal_wrapper, arguments = [json_args.path], inputs = depset([json_args], transitive = [c.inputs]), - input_manifests = c.input_manifests, + input_manifests = c.input_manifests + runghc_manifest, tools = [c.cabal_wrapper, ctx.executable._runghc], outputs = outputs, env = c.env, @@ -802,13 +803,14 @@ def _haskell_cabal_binary_impl(ctx): dynamic_file = binary, transitive_haddocks = _gather_transitive_haddocks(ctx.attr.deps), ) + (_, runghc_manifest) = ctx.resolve_tools(tools = [ctx.attr._runghc]) json_args = ctx.actions.declare_file("{}_cabal_wrapper_args.json".format(ctx.label.name)) ctx.actions.write(json_args, c.args.to_json()) ctx.actions.run( executable = c.cabal_wrapper, arguments = [json_args.path], inputs = depset([json_args], transitive = [c.inputs]), - input_manifests = c.input_manifests, + input_manifests = c.input_manifests + runghc_manifest, outputs = [ package_database, binary,