Skip to content

Conversation

@rickeylev
Copy link
Collaborator

Update code and examples to load the object-specific bzl files instead of the
generic defs.bzl. This is mostly for code hygiene, but came out of trying to diagnose
why Bazel 9 workspace builds kept erroing with defs.bzl somehow related. Removing
the internal usages of defs.bzl doesn't seem to fully fix it, but does seem to eliminate
some errors, make some progress, and narrow down what's going on.

Work towards #2469

@rickeylev rickeylev force-pushed the chore.rm.defs.usages branch from 91737c4 to 5753f1a Compare December 7, 2024 01:48
Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

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

Should we make the defs.bzl deprecated? We could add a deprecation notice that they will be removed in the upcoming major version of rules_python?

@aignas aignas added this pull request to the merge queue Dec 7, 2024
Merged via the queue into bazel-contrib:main with commit ca98773 Dec 7, 2024
4 checks passed
@rickeylev rickeylev deleted the chore.rm.defs.usages branch December 7, 2024 03:23
@rickeylev
Copy link
Collaborator Author

I'd be fine with "soft" deprecating it. It's been around for a long time and there's quite a few usages of it out there. Re-exporting the symbols is very low maintenance, so I don't want to remove it without a long period.

ewianda pushed a commit to ewianda/rules_python that referenced this pull request Dec 7, 2024
…trib#2483)

Update code and examples to load the object-specific bzl files instead
of the
generic `defs.bzl`. This is mostly for code hygiene, but came out of
trying to diagnose
why Bazel 9 workspace builds kept erroing with defs.bzl somehow related.
Removing
the internal usages of defs.bzl doesn't seem to fully fix it, but does
seem to eliminate
some errors, make some progress, and narrow down what's going on.

Work towards bazel-contrib#2469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants