We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528c9b2 commit 67f8445Copy full SHA for 67f8445
1 file changed
src/codechecker_config.bzl
@@ -35,14 +35,9 @@ def get_config_file(ctx):
35
36
# Create CodeChecker JSON config file and env vars
37
if ctx.attr.config:
38
- if type(ctx.attr.config) == "list":
39
- config_info = ctx.attr.config[0][CodeCheckerConfigInfo]
40
- else:
41
- config_info = ctx.attr.config[CodeCheckerConfigInfo]
42
if config_info.config_file:
43
# Create a copy of CodeChecker configuration file
44
# provided via codechecker_config(config_file)
45
- config_file = config_info.config_file.files.to_list()[0]
46
ctx.actions.run(
47
inputs = [config_file],
48
outputs = [ctx_config_file],
0 commit comments