A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/6f4a9900f4c590f7c96297b1cff5a2256968e912 below:

Migrates some Java test protos using java_features.proto to edition 2024 · protocolbuffers/protobuf@6f4a990 · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+11

-4

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+11

-4

lines changed Original file line number Diff line number Diff line change

@@ -15,6 +15,6 @@ def protobuf_test_proto_library(**kwattrs):

15 15

if "option_deps" in kwargs and hasattr(native, "proto_library"):

16 16

deps = kwargs.pop("deps", [])

17 17

option_deps = kwargs.pop("option_deps")

18 -

kwargs["deps"] = deps + option_deps

18 +

kwargs["deps"] = depset(deps + option_deps).to_list()

19 19 20 20

proto_library(**kwargs)

Original file line number Diff line number Diff line change

@@ -7,6 +7,10 @@ load("//bazel:cc_proto_library.bzl", "cc_proto_library")

7 7

load("//bazel:java_lite_proto_library.bzl", "java_lite_proto_library")

8 8

load("//bazel:java_proto_library.bzl", "java_proto_library")

9 9

load("//bazel:proto_library.bzl", "proto_library")

10 +

load(

11 +

"//bazel/tests:protobuf_test_proto_library.bzl",

12 +

"protobuf_test_proto_library",

13 +

)

10 14

load("//bazel/toolchains:proto_lang_toolchain.bzl", "proto_lang_toolchain")

11 15

load("//build_defs:java_opts.bzl", "protobuf_java_export", "protobuf_java_library", "protobuf_versioned_java_library")

12 16

load("//conformance:defs.bzl", "conformance_test")

@@ -338,9 +342,12 @@ proto_lang_toolchain(

338 342

visibility = ["//visibility:public"],

339 343

)

340 344 341 -

proto_library(

345 +

protobuf_test_proto_library(

342 346

name = "java_test_protos",

343 347

srcs = glob(["src/test/proto/**/*.proto"]),

348 +

option_deps = [

349 +

"//:java_features_proto",

350 +

],

344 351

strip_import_prefix = "src/test/proto",

345 352

deps = [

346 353

"//:any_proto",

Original file line number Diff line number Diff line change

@@ -11,7 +11,7 @@ edition = "2024";

11 11 12 12

package protobuf_test_messages.edition;

13 13 14 -

import "google/protobuf/java_features.proto";

14 +

import option "google/protobuf/java_features.proto";

15 15 16 16

option java_package = "com.google.protobuf.large.openenum.edition";

17 17

option features.(pb.java).large_enum = true;

Original file line number Diff line number Diff line change

@@ -12,7 +12,7 @@ edition = "2024";

12 12 13 13

package proto2_test_check_utf8;

14 14 15 -

import "google/protobuf/java_features.proto";

15 +

import option "google/protobuf/java_features.proto";

16 16 17 17

option features.utf8_validation = NONE;

18 18

option features.(pb.java).utf8_validation = VERIFY;

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4