Skip to content

Commit 5935259

Browse files
vladmoscopybara-github
authored andcommitted
Flip the --incompatible_depset_is_not_iterable flag
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
1 parent fded729 commit 5935259

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

site/docs/skylark/backward-compatibility.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ sorted(deps.to_list()) # recommended
108108
```
109109

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

114114

src/main/java/com/google/devtools/build/lib/packages/StarlarkSemanticsOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public class StarlarkSemanticsOptions extends OptionsBase implements Serializabl
190190

191191
@Option(
192192
name = "incompatible_depset_is_not_iterable",
193-
defaultValue = "false",
193+
defaultValue = "true",
194194
documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS,
195195
effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS},
196196
metadataTags = {

src/main/java/com/google/devtools/build/lib/syntax/StarlarkSemantics.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public static Builder builderWithDefaults() {
228228
.experimentalStarlarkConfigTransitions(true)
229229
.experimentalStarlarkUnusedInputsList(false)
230230
.incompatibleBzlDisallowLoadAfterStatement(true)
231-
.incompatibleDepsetIsNotIterable(false)
231+
.incompatibleDepsetIsNotIterable(true)
232232
.incompatibleDepsetUnion(true)
233233
.incompatibleDisableThirdPartyLicenseChecking(true)
234234
.incompatibleDisableDeprecatedAttrParams(true)

0 commit comments

Comments
 (0)