-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gazelle plugin to CI and distribution mechanism (#424)
After #400, the gazelle plugin has been cleanly separated out into its own bazel workspace, which will soon finally allow us to mark it stable. But this means: * we need to change our bazelci config to explicitly build and test it, since `bazel build //...` no longer includes the plugin; * we need to add proper distribution rules for it; * we need to update release instructions, since now we will have two distribution tarballs
- Loading branch information
Showing
10 changed files
with
126 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- MODULE.bazel | ||
+++ MODULE.bazel | ||
@@ -22,8 +22,8 @@ | ||
# Needed for bazelci and for building distribution tarballs. | ||
# If using an unreleased version of bazel_skylib via git_override, apply | ||
# MODULE.bazel-remove-override.patch to remove the following lines: | ||
-bazel_dep(name = "bazel_skylib_gazelle_plugin", dev_dependency = True) | ||
-local_path_override( | ||
- module_name = "bazel_skylib_gazelle_plugin", | ||
- path = "gazelle", | ||
-) | ||
+# bazel_dep(name = "bazel_skylib_gazelle_plugin", dev_dependency = True) | ||
+# local_path_override( | ||
+# module_name = "bazel_skylib_gazelle_plugin", | ||
+# path = "gazelle", | ||
+# ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
module( | ||
name = "bazel_skylib_gazelle_plugin", | ||
compatibility_level = 1, | ||
# If you change this, please also update @bazel_gazelle//:MODULE.bazel | ||
# Keep in sync with @bazel_skylib//:MODULE.bazel and @bazel_skylib//:version.bzl | ||
version = "1.3.0", | ||
compatibility_level = 1, | ||
) | ||
|
||
# Keep in sync with @bazel_skylib//:MODULE.bazel and @bazel_skylib//:version.bzl | ||
bazel_dep(name = "bazel_skylib", version = "1.3.0") | ||
bazel_dep(name = "gazelle", repo_name = "bazel_gazelle", version = "0.28.0") | ||
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go", version = "0.35.0") | ||
bazel_dep(name = "gazelle", version = "0.28.0", repo_name = "bazel_gazelle") | ||
bazel_dep(name = "rules_go", version = "0.35.0", repo_name = "io_bazel_rules_go") | ||
|
||
# `rules_go` will register a toolchain for us if the user doesn't do so | ||
|
||
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") | ||
|
||
go_deps.module( | ||
path = "github.com/bazelbuild/buildtools", | ||
sum = "h1:fmdo+fvvWlhldUcqkhAMpKndSxMN3vH5l7yow5cEaiQ=", | ||
version = "v0.0.0-20220531122519-a43aed7014c8", | ||
) | ||
|
||
use_repo(go_deps, "com_github_bazelbuild_buildtools") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters