Skip to content

Commit

Permalink
Update bzl escape for incompatible flags (#686)
Browse files Browse the repository at this point in the history
This adds support for `--incompatible_restrict_string_escapes` bazelbuild/bazel#8380
  • Loading branch information
keith authored and vladmos committed Jul 30, 2019
1 parent 24a3cd5 commit cdc53fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildifier/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _buildifier_impl(ctx):

exclude_patterns_str = ""
if ctx.attr.exclude_patterns:
exclude_patterns = ["\! -path %s" % shell.quote(pattern) for pattern in ctx.attr.exclude_patterns]
exclude_patterns = ["\\! -path %s" % shell.quote(pattern) for pattern in ctx.attr.exclude_patterns]
exclude_patterns_str = " ".join(exclude_patterns)

out_file = ctx.actions.declare_file(ctx.label.name + ".bash")
Expand Down

0 comments on commit cdc53fb

Please sign in to comment.