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

Add the gazelle plugin to the distribution (#400) #1

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

leovitch
Copy link
Owner

  • Add the gazelle plugin to the distribution

To avoid everyone needing to take a dep on rules_go, we do the following:

  1. Regular Bazel users need to load bazel_skylib_gazelle_plugin_workspace and call that, and then bazel_skylib_gazelle_plugin_setup

  2. bzlmod users need do nothing, but we now include the rules_go dep in the MODULE.bazel shipped in the release. This is fine, because bzlmod will lazily load dependencies.

  • Run buildifier

  • Add docstring to gazelle_setup.bzl

  • Move "internal only" marker

  • Make @com_github_bazelbuild_buildtools visible in the deployed module

  • Respond to review comments

  • Move plugin to a nested workspace

  • Run buildifier

  • Restore the module declaration from main

  • Bump versions of rules_go and gazelle used in the top-level module to match the ones in gazelle

  • Respond to review comments and add gazelle to ignored directories so //... works as expected

  • Add missing descriptor for stardoc

  • Move gazelle hints into workspace files

* Add the gazelle plugin to the distribution

To avoid everyone needing to take a dep on `rules_go`, we
do the following:

1. Regular Bazel users need to load `bazel_skylib_gazelle_plugin_workspace`
   and call that, and then `bazel_skylib_gazelle_plugin_setup`

2. `bzlmod` users need do nothing, but we now include the
   `rules_go` dep in the `MODULE.bazel` shipped in the release.
    This is fine, because `bzlmod` will lazily load
    dependencies.

* Run buildifier

* Add docstring to `gazelle_setup.bzl`

* Move "internal only" marker

* Make @com_github_bazelbuild_buildtools visible in the deployed module

* Respond to review comments

* Move plugin to a nested workspace

* Run buildifier

* Restore the module declaration from `main`

* Bump versions of rules_go and gazelle used in the top-level module to match the ones in gazelle

* Respond to review comments and add gazelle to ignored directories so //... works as expected

* Add missing descriptor for stardoc

* Move gazelle hints into workspace files
@leovitch leovitch closed this Nov 14, 2022
@leovitch leovitch reopened this Nov 15, 2022
@leovitch leovitch merged commit 1979599 into leovitch:main Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants