Skip to content

Commit

Permalink
Flip the --incompatible_depset_is_not_iterable flag
Browse files Browse the repository at this point in the history
RELNOTES[INC]: Depsets can't be iterated over unless they're converted to lists
using the .to_list() method. Use --incompatible_depset_is_not_iterable=false to
temporarily restore the previous behaviour.

#5816

PiperOrigin-RevId: 251249558
  • Loading branch information
vladmos authored and copybara-github committed Jun 3, 2019
1 parent fded729 commit 5935259
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/docs/skylark/backward-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ sorted(deps.to_list()) # recommended
```

* Flag: `--incompatible_depset_is_not_iterable`
* Default: `false`
* Default: `true`
* Tracking issue: [#5816](https://github.com/bazelbuild/bazel/issues/5816)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public class StarlarkSemanticsOptions extends OptionsBase implements Serializabl

@Option(
name = "incompatible_depset_is_not_iterable",
defaultValue = "false",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS,
effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS},
metadataTags = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public static Builder builderWithDefaults() {
.experimentalStarlarkConfigTransitions(true)
.experimentalStarlarkUnusedInputsList(false)
.incompatibleBzlDisallowLoadAfterStatement(true)
.incompatibleDepsetIsNotIterable(false)
.incompatibleDepsetIsNotIterable(true)
.incompatibleDepsetUnion(true)
.incompatibleDisableThirdPartyLicenseChecking(true)
.incompatibleDisableDeprecatedAttrParams(true)
Expand Down

0 comments on commit 5935259

Please sign in to comment.