Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error for two-level list comprehension with condition #69

Closed
pmbethe09 opened this issue Mar 22, 2017 · 0 comments
Closed

Syntax error for two-level list comprehension with condition #69

pmbethe09 opened this issue Mar 22, 2017 · 0 comments

Comments

@pmbethe09
Copy link
Member

genrule(
name = "test",
outs = [
"%s/%s.txt" % (dictionary["folder_name"], file_name)
for dictionary in DICTIONARIES if dictionary["enabled"]
for file_name in dictionary["file_names"]
],
cmd = "touch $(OUTS)",
)

Is valid in bazel, but not buildifier's grammar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant