From d367bdbf03ff594de62eb6c28725716b74aca5f4 Mon Sep 17 00:00:00 2001 From: Ittai Zeidman Date: Fri, 17 Jan 2020 07:32:14 +0200 Subject: [PATCH] scalatest final-remove redundant coverage handling (#923) --- scala/private/phases/phase_final.bzl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scala/private/phases/phase_final.bzl b/scala/private/phases/phase_final.bzl index c01544e8f..1fdb9514a 100644 --- a/scala/private/phases/phase_final.bzl +++ b/scala/private/phases/phase_final.bzl @@ -19,11 +19,9 @@ def phase_library_final(ctx, p): return [defaultInfo, p.compile.merged_provider, p.collect_jars.jars2labels] + p.compile.coverage.providers def phase_scalatest_final(ctx, p): - coverage_runfiles = p.coverage_runfiles.coverage_runfiles - coverage_runfiles.extend(p.write_executable) defaultInfo = DefaultInfo( executable = p.declare_executable, files = depset([p.declare_executable, ctx.outputs.jar]), - runfiles = ctx.runfiles(coverage_runfiles, transitive_files = p.runfiles.runfiles.files), + runfiles = ctx.runfiles(p.coverage_runfiles.coverage_runfiles, transitive_files = p.runfiles.runfiles.files), ) return [defaultInfo, p.compile.merged_provider, p.collect_jars.jars2labels] + p.compile.coverage.providers