Uh oh!
There was an error while loading. Please reload this page.
feat(gazelle)!: Move the plugin to a separate workspace - #972
Conversation
5ae27f4 to
abde25cCompare
chrislovecnm
left a comment
There was a problem hiding this comment.
Look great. I have some nitpicks that I noticed, but I like it!! Working on the build_file_generation example I was wondering if bzmod and gazelle where working.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
7b0ec08 to
2ad688fComparechrislovecnm
commented
Jan 10, 2023
alexeagle
commented
Jan 10, 2023
FYI @f0rmiga is on paternity leave, back next week I believe |
chrislovecnm
commented
Jan 10, 2023
@alexeagle who else can review it? |
I think we should probably just wait for @f0rmiga to be back. This will need someone to invest a few hours. As one way to make this easier to land, @aignas is it possible to split out a separate PR that does the directory rename so this doesn't show as a 433 files changed? Or leave the directory rename for a subsequent refactoring? I can't even get started on reviewing it at this size without setting aside a chunk of my day. (Also, thank you for taking this on!!) |
Hey @alexeagle, I also think that waiting for @f0rmiga is probably for the best. I can split it to several commits at the very least. I think the rename is necessary to make everything work as we are moving the What I can do to make it easier to review is to split it into multiple PRs introducing a breaking change:
How does it sound to you? And sorry for making the initial PR too long, I was mainly looking at the changed lines counter. |
alexeagle
commented
Jan 12, 2023
Yeah I think the folder rename first will make it more manageable. Thanks! |
This is in order to make bazel-contrib#972 easier to review. This PR is only moving files and addressing a few small review comments made in the initial review of bazel-contrib#972. Work towards bazel-contrib#965.
This is in order to make bazel-contrib#972 easier to review. This PR is only moving files and addressing a few small review comments made in the initial review of bazel-contrib#972. Work towards bazel-contrib#965.
This is in order to make bazel-contrib#972 easier to review. This PR is only moving files and addressing a few small review comments made in the initial review of bazel-contrib#972. Work towards bazel-contrib#965.
This is in order to make bazel-contrib#972 easier to review. This PR is only moving files and addressing a few small review comments made in the initial review of bazel-contrib#972. Work towards bazel-contrib#965.
d1de560 to
d9bd232Compareaignas
commented
Jan 24, 2023
Summary: * Move go.mod to gazelle. * Move gazelle definition. * Fix file distribution for the gazelle module. * Update the example test. * Include rules_python_gazelle_plugin during integration tests * Update ignored packages * Update CI configuration
f0rmiga
commented
Jan 25, 2023
Thanks for addressing this, @aignas! |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Previously the gazelle plugin was part of the same
WORKSPACE. This means that we cannot have a separatebzlmodmodule and make therules_pythonrepo work with both,bzlmodand legacy dependency management systems.Issue Number: #965
What is the new behavior?
The
gazelleplugin is now isolated with its ownWORKSPACEfile. Whilst making this I have also moved the plugin source code to a separate directory.Summary:
gazelledefinition.Move the gazelle plugin to a separate folder, just likeThis is now refactor(gazelle): Move plugin to a separate directory. #983.bazel-skylibdoes, which helps with naming of the externally visible targets.distributionfor the gazelle module.Does this PR introduce a breaking change?
Steps that need to be taken:
WORKSPACEand change the import path for the plugin dependency setup.@rules_python_gazelle_plugin//python:gazelle_binary.@rules_python_gazelle_plugin//python.gazelle_python.yamlintegrity gets changed for all users.