-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Publish bazelbuild/[email protected] * Remove centos7 * Keep maintainers --------- Co-authored-by: Fabian Meumertzheim <[email protected]>
- Loading branch information
1 parent
4bb177a
commit 43d56a5
Showing
4 changed files
with
85 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
module( | ||
name = "gazelle", | ||
version = "0.34.0", | ||
repo_name = "bazel_gazelle", | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.3.0") | ||
bazel_dep(name = "protobuf", version = "3.19.6", repo_name = "com_google_protobuf") | ||
bazel_dep(name = "rules_go", version = "0.42.0", repo_name = "io_bazel_rules_go") | ||
bazel_dep(name = "rules_proto", version = "4.0.0") | ||
|
||
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") | ||
|
||
# Known to exist since it is instantiated by rules_go itself. | ||
use_repo( | ||
go_sdk, | ||
"go_host_compatible_sdk_label", | ||
) | ||
|
||
non_module_deps = use_extension("//internal/bzlmod:non_module_deps.bzl", "non_module_deps") | ||
use_repo( | ||
non_module_deps, | ||
"bazel_gazelle_go_repository_cache", | ||
"bazel_gazelle_go_repository_tools", | ||
"bazel_gazelle_is_bazel_module", | ||
) | ||
|
||
go_deps = use_extension("//:extensions.bzl", "go_deps") | ||
go_deps.from_file(go_mod = "//:go.mod") | ||
|
||
# golang.org/x/tools is not a direct dependency of the go code anymore | ||
# but bazel buildtools and nogo depend on it. | ||
go_deps.module( | ||
path = "golang.org/x/tools", | ||
sum = "h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=", | ||
version = "v0.13.0", | ||
) | ||
use_repo( | ||
go_deps, | ||
"com_github_bazelbuild_buildtools", | ||
"com_github_bmatcuk_doublestar_v4", | ||
"com_github_fsnotify_fsnotify", | ||
"com_github_google_go_cmp", | ||
"com_github_pmezard_go_difflib", | ||
"org_golang_x_mod", | ||
"org_golang_x_sync", | ||
"org_golang_x_tools", | ||
"org_golang_x_tools_go_vcs", | ||
# Referenced by `gazelle_binary`. | ||
"bazel_gazelle_go_repository_config", | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) | ||
bazel_dep(name = "stardoc", version = "0.5.1", dev_dependency = True, repo_name = "io_bazel_stardoc") |
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,24 @@ | ||
bcr_test_module: | ||
module_path: tests/bcr | ||
matrix: | ||
platform: | ||
- debian10 | ||
- ubuntu2004 | ||
- macos | ||
- windows | ||
tasks: | ||
run_test_module: | ||
name: Run test module | ||
platform: ${{ platform }} | ||
shell_commands: | ||
# Regenerate the BUILD file for the test module using Gazelle. | ||
- rm pkg/BUILD.bazel | ||
- bazel run //:gazelle | ||
build_targets: | ||
- //... | ||
- //:gazelle | ||
test_targets: | ||
# Specify this target explicitly to verify that Gazelle generated it correctly. | ||
- "//pkg:pkg_test" | ||
- "//..." | ||
- "@test_dep//..." |
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,5 @@ | ||
{ | ||
"integrity": "sha256-tzh/cu+1n4duTarkLx05EtDUVWPqx8sj0d4LCUq1iM8=", | ||
"strip_prefix": "", | ||
"url": "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz" | ||
} |
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