8000 feat(gazelle): support bzlmod by aignas · Pull Request #968 · bazel-contrib/rules_python · GitHub
[go: up one dir, main page]

Skip to content

feat(gazelle): support bzlmod #968

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

Closed
wants to merge 2 commits into from

Conversation

aignas
Copy link
Collaborator
@aignas aignas commented Jan 3, 2023

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Currently rules_python is missing dependencies required for the gazelle plugin operation.

Work towards #965.

What is the new behavior?

The extra dependencies have been added.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

I saw that the gazelle plugin for bazel-skylib has a separate MODULE.bazel file and maybe we should follow that route. However, I assume that they have gone with that approach due to bazel-skylib being a much more low-level dependency than rules_python. Hence I chose the monolithic approach for now. Whichever approach we take here, it may need to be consistent with #832 of how the py_proto_library support is introduced.

@aignas aignas requested a review from rickeylev as a code owner January 3, 2023 04:51
@aignas aignas marked this pull request as draft January 4, 2023 07:30
@aignas
Copy link
Collaborator Author
aignas commented Jan 4, 2023

Depends on #972.

@aignas aignas force-pushed the gazelle-bzlmod-3 branch 2 times, most recently from f5db73a to 58a7a2f Compare January 4, 2023 09:47
aignas added 2 commits January 4, 2023 19:50
Summary:
* Move go.mod to gazelle.
* Move gazelle definition.
* Move the gazelle plugin to a separate folder, just like bazel-skylib does, which helps with naming of the externally visible targets.
* 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
@aignas aignas changed the title feat(bzlmod): Add rules_go and gazelle to module deps feat(gazelle): support bzlmod Jan 4, 2023
@aignas aignas closed this Feb 13, 2023
@aignas aignas deleted the gazelle-bzlmod-3 branch February 13, 2023 05:29
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.

1 participant
0