Skip to content

Commit ae17359

Browse files
committed
Apply transition where .beam files are used
1 parent 36e1df5 commit ae17359

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
@@ -27,6 +27,7 @@ load(
2727
"erlang_dirs",
2828
"maybe_install_erlang",
2929
)
30+
load("//transitions:beam_transition.bzl", "beam_transition")
3031

3132
def sanitize_sname(s):
3233
return s.replace("@", "-").replace(".", "_")
@@ -336,6 +337,7 @@ ct_test = rule(
336337
"compiled_suites": attr.label_list(
337338
allow_files = [".beam"],
338339
mandatory = True,
340+
cfg = beam_transition,
339341
),
340342
"ct_hooks": attr.string_list(),
341343
"ct_run_extra_args": attr.string_list(),
@@ -350,6 +352,9 @@ ct_test = rule(
350352
default = "group",
351353
values = ["group", "case"],
352354
),
355+
"_allowlist_function_transition": attr.label(
356+
default = "@bazel_tools//tools/allowlists/function_transition_allowlist",
357+
),
353358
},
354359
toolchains = ["//tools:toolchain_type"],
355360
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)