Both versions are again compatible with WORKSPACE mode on Bazel 8. The version also extends the compatibility down to Bazel 6. Add repo_name = "com_google_protobuf" to examples/MODULE.bazel. Bazel 6,7,and 8 (in WORKSPACE mode) still expect this is the name of the repo. (Default value of --proto_compiler flag). There's no way to change this without breaking compatibility with WORKSPACE mode. Remove local_repository(name = protobuf) from WORKSPACE. The repository is now consistently called com_google_protobuf in both WORKSPACE and Bzlmod mode. Rename uses of @protobuf to @com_google_protobuf. PiperOrigin-RevId: 695579489pull/19209/head
parent
c9a4aa911e
commit
c820dd0ca6
8 changed files with 42 additions and 48 deletions
@ -1,17 +0,0 @@ |
|||||||
#region Copyright notice and license |
|
||||||
// Protocol Buffers - Google's data interchange format |
|
||||||
// Copyright 2008 Google Inc. All rights reserved. |
|
||||||
// |
|
||||||
// Use of this source code is governed by a BSD-style |
|
||||||
// license that can be found in the LICENSE file or at |
|
||||||
// https://developers.google.com/open-source/licenses/bsd |
|
||||||
#endregion |
|
||||||
|
|
||||||
namespace Google.Protobuf.Reflection; |
|
||||||
|
|
||||||
internal sealed partial class FeatureSetDescriptor |
|
||||||
{ |
|
||||||
// Canonical serialized form of the edition defaults, generated by embed_edition_defaults. |
|
||||||
private const string DefaultsBase64 = |
|
||||||
"ChMYhAciACoMCAEQAhgCIAMoATACChMY5wciACoMCAIQARgBIAIoATABChMY6AciDAgBEAEYASACKAEwASoAIOYHKOgH"; |
|
||||||
} |
|
@ -1,13 +1,13 @@ |
|||||||
"""Bazel module dependencies""" |
"""Bazel module dependencies""" |
||||||
bazel_dep(name = "protobuf", version = "0.0.0", dev_dependency = True) |
|
||||||
|
|
||||||
|
bazel_dep(name = "protobuf", version = "0.0.0", repo_name = "com_google_protobuf") |
||||||
local_path_override( |
local_path_override( |
||||||
module_name = "protobuf", |
module_name = "protobuf", |
||||||
path = "..", |
path = "..", |
||||||
) |
) |
||||||
|
|
||||||
bazel_dep(name = "bazel_skylib", version = "1.0.3") |
bazel_dep(name = "bazel_skylib", version = "1.0.3") |
||||||
bazel_dep(name = "rules_cc", version = "0.0.1") |
bazel_dep(name = "rules_cc", version = "0.0.16") |
||||||
bazel_dep(name = "rules_java", version = "7.3.0") |
bazel_dep(name = "rules_java", version = "8.3.2") |
||||||
bazel_dep(name = "rules_pkg", version = "0.7.0") |
bazel_dep(name = "rules_pkg", version = "0.7.0") |
||||||
bazel_dep(name = "rules_python", version = "0.25.0") |
bazel_dep(name = "rules_python", version = "0.25.0") |
||||||
|
Loading…
Reference in new issue