Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

chore: enable incompatible_disable_depset_items #1977

Merged
merged 1 commit into from Dec 16, 2021
Merged

chore: enable incompatible_disable_depset_items #1977

merged 1 commit into from Dec 16, 2021

Conversation

alexeagle
Copy link
Collaborator

fixes #1939

@@ -85,6 +86,8 @@ def _impl(ctx, image_tar = None, packages = None, additional_repos = None, outpu
output_script: File, overrides ctx.outputs.build_script
output_metadata: File, overrides ctx.outputs.metadata_csv
"""
if types.is_depset(packages):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this check work without --incompatible_disable_depset_items?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this should work? /cc @alexeagle

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this only depends on bazel-skylib

@alexeagle alexeagle merged commit a0e6d5d into master Dec 16, 2021
@meteorcloudy
Copy link
Member

--incompatible_disable_depset_items is actually already removed from Bazel@HEAD, it's also turned on by default in 5.0 (which will be released soon).

I'll just remove it from the .bazelrc file to fix rules_docker with Bazel@HEAD:
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2289#3a453138-8cc0-4f6b-b777-4f2cfb8ddd23

meteorcloudy added a commit that referenced this pull request Dec 21, 2021
`--incompatible_disable_depset_items` is removed at Bazel@HEAD and is turned on by default in 5.0.
See #1977 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rules_docker broken with Bazel@HEAD CI
3 participants