Skip to content

Commit 67f2e53

Browse files
committed
Apply transition where .beam files are used
1 parent 6861d16 commit 67f2e53

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

private/ct.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ load(
2323
"erlang_dirs",
2424
"maybe_install_erlang",
2525
)
26+
load("//transitions:beam_transition.bzl", "beam_transition")
2627

2728
def sanitize_sname(s):
2829
return s.replace("@", "-").replace(".", "_")
@@ -289,6 +290,7 @@ ct_test = rule(
289290
"compiled_suites": attr.label_list(
290291
allow_files = [".beam"],
291292
mandatory = True,
293+
cfg = beam_transition,
292294
),
293295
"ct_hooks": attr.string_list(),
294296
"ct_run_extra_args": attr.string_list(),
@@ -303,6 +305,9 @@ ct_test = rule(
303305
default = "group",
304306
values = ["group", "case"],
305307
),
308+
"_allowlist_function_transition": attr.label(
309+
default = "@bazel_tools//tools/allowlists/function_transition_allowlist",
310+
),
306311
},
307312
toolchains = ["//tools:toolchain_type"],
308313
test = True,

private/dialyze.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ load("//:erlang_app_info.bzl", "ErlangAppInfo")
77
load("//:util.bzl", "path_join", "windows_path")
88
load(":util.bzl", "erl_libs_contents")
99
load(":ct.bzl", "code_paths", "unique_short_dirnames")
10+
load("//transitions:beam_transition.bzl", "beam_transition")
1011

1112
def _impl(ctx):
1213
if ctx.attr.target == None and len(ctx.attr.beam) == 0:
@@ -114,6 +115,7 @@ dialyze_test = rule(
114115
),
115116
"beam": attr.label_list(
116117
allow_files = [".beam"],
118+
cfg = beam_transition,
117119
),
118120
"target": attr.label(
119121
providers = [ErlangAppInfo],
@@ -129,6 +131,9 @@ dialyze_test = rule(
129131
],
130132
),
131133
"warnings_as_errors": attr.bool(default = True),
134+
"_allowlist_function_transition": attr.label(
135+
default = "@bazel_tools//tools/allowlists/function_transition_allowlist",
136+
),
132137
},
133138
toolchains = ["//tools:toolchain_type"],
134139
test = True,

0 commit comments

Comments
 (0)