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

incompatible_disable_depset_items: disallow the "items" parameter on the depset constructor #9017

Closed
c-parsons opened this issue Jul 30, 2019 · 1 comment
Labels
incompatible-change Incompatible/breaking change P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) type: process

Comments

@c-parsons
Copy link
Contributor

c-parsons commented Jul 30, 2019

Flag: --incompatible_disable_depset_items

Disables the items parameter of the depset() contructor.

Motivation

The items parameter has been documented as Deprecated for many months. Users are encouraged to use direct and transitive instead.

Migration

Separate the items of a depset into the direct elements and the transitive depsets to union; use direct and transitive parameters. See the documentation.

@c-parsons c-parsons added team-Starlark incompatible-change Incompatible/breaking change labels Jul 30, 2019
@c-parsons c-parsons self-assigned this Jul 30, 2019
@c-parsons c-parsons changed the title incompatible_disable_depset_inputs: disallow the "inputs" parameter on the depset constructor incompatible_disable_depset_items: disallow the "items" parameter on the depset constructor Jul 30, 2019
bazel-io pushed a commit that referenced this issue Aug 15, 2019
This is an incompatible change attached to new flag --incompatible_disable_depset_items.

See #9017 for details.

RELNOTES: New incompatible flag --incompatible_disable_depset_items disables the "items" parameter in the Starlark depset constructor. Use "direct" and "transitive" parameters instead.
PiperOrigin-RevId: 263597718
@aehlig
Copy link
Contributor

aehlig commented Dec 2, 2019

It seems that this flag isn't flipped yet. Extending the migration window.

This was referenced Dec 26, 2019
@brandjon brandjon added P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) team-Build-Language and removed team-Starlark labels Feb 19, 2021
amberdixon added a commit to bazel-ios/rules_ios that referenced this issue Nov 16, 2021
luca-digrazia pushed a commit to luca-digrazia/DatasetCommitsDiffSearch that referenced this issue Sep 4, 2022
    This is an incompatible change attached to new flag --incompatible_disable_depset_items.

    See bazelbuild/bazel#9017 for details.

    RELNOTES: New incompatible flag --incompatible_disable_depset_items disables the "items" parameter in the Starlark depset constructor. Use "direct" and "transitive" parameters instead.
    PiperOrigin-RevId: 263597718
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incompatible-change Incompatible/breaking change P4 This is either out of scope or we don't have bandwidth to review a PR. (No assignee) type: process
Projects
None yet
Development

No branches or pull requests

8 participants