Skip to content

Commit

Permalink
Explicitly convert depset to list for Bazel compatibility
Browse files Browse the repository at this point in the history
The flag `incompatible_depset_is_not_iterable` will soon be
enabled in Bazel by default. Implicitly iteration over a depset
will be forbidden.

Closes #70

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=250879220
  • Loading branch information
laurentlb authored and cpovirk committed Jun 4, 2019
1 parent 3413f4d commit 084aadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/maven/pom_file.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _pom_file(ctx):
)

formatted_deps = []
for dep in _sort_artifacts(mvn_deps, ctx.attr.preferred_group_ids):
for dep in _sort_artifacts(mvn_deps.to_list(), ctx.attr.preferred_group_ids):
parts = dep.split(":")
if ":".join(parts[0:2]) in ctx.attr.excluded_artifacts:
continue
Expand Down

0 comments on commit 084aadd

Please sign in to comment.