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

Bazel7 Workspace Support #237

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
common --noenable_bzlmod
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.4.1
25 changes: 23 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
#
# Supporting infrastructure for implementing and testing PINS.
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_test")

package(
default_visibility = ["//visibility:public"],
Expand All @@ -22,7 +22,28 @@ package(

exports_files(["LICENSE"])

# gazelle:go_grpc_compilers @io_bazel_rules_go//proto:go_grpc_v2, @io_bazel_rules_go//proto:go_proto
# gazelle:proto_import_prefix github.com/openconfig/gnoi
# gazelle:prefix github.com/openconfig/gnoi
# gazelle:resolve_regexp proto github.com/openconfig/gnsi/(.*)/(.*)\.proto @com_github_openconfig_gnsi//${1}:${2}_proto
# gazelle:resolve_regexp proto go github.com/openconfig/gnsi/(.*)/(.*)\.proto @com_github_openconfig_gnsi//${1}:${2}_go_proto
# gazelle:resolve_regexp proto github.com/openconfig/bootz/(.*)/(.*)\.proto @com_github_openconfig_bootz//${1}:${2}_proto
# gazelle:resolve_regexp proto go github.com/openconfig/bootz/(.*)/(.*)\.proto @com_github_openconfig_bootz//${1}:${2}_go_proto
# gazelle:resolve proto proto google/rpc/status.proto @com_google_googleapis//google/rpc:status_proto
# gazelle:resolve proto go google/rpc/status.proto @org_golang_google_genproto_googleapis_rpc//status
gazelle(name = "gazelle")

# gazelle:exclude **.pb.go
gazelle(
name = "gazelle_update_repos",
args = [
"-from_file=go.mod",
"-to_macro=gnoi_go_deps.bzl%gnoi_go_deps",
"-prune",
],
command = "update-repos",
)

gazelle_test(
name = "gazelle_test",
workspace = "//:BUILD.bazel",
)
6 changes: 0 additions & 6 deletions MODULE.bazel

This file was deleted.

Loading
Loading