-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprotofu.yaml
98 lines (87 loc) · 4.06 KB
/
protofu.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
compiler:
# optional: pin the version of the protoc compiler
version: 27.2
# optional: pass grpc flag to --dart_out protoc string. Defaults to "false"
# grpcEnabled: true
options:
# optional: pass the --disallow_services flag
# disallowServices: True
#
# optional: pass the --fatal_warnings flag Make warnings be fatal (similar to -Werr in
# gcc). This flag will make protoc return
# with a non-zero exit code if any warnings
# are generated.
# fatalWarnings: True
#
# optional: pass the --experimental_allow_proto3_optional flag
# experimentalAllowProto3Optional: True
#
# optional: set the --error_format=FORMAT flag
# --error_format=FORMAT Set the format in which to print errors.
# FORMAT may be 'gcc' (the default) or 'msvs'
# (Microsoft Visual Studio format).
# errorFormat: gcc
descriptor:
# optional: specifies the descriptor set in and passes the --descriptor_set_in=FILES flag
# --descriptor_set_in=FILES Specifies a delimited list of FILES
# each containing a FileDescriptorSet (a
# protocol buffer defined in descriptor.proto).
# The FileDescriptor for each of the PROTO_FILES
# provided will be loaded from these
# FileDescriptorSets. If a FileDescriptor
# appears multiple times, the first occurrence
# will be used.
# setIn:
# - location/to/descriptor/filename
# - location/to/descriptor/another-filename
#
# optional: specifies the descriptor set out and calls the --descriptor_set_out=FILE flag
# -oFILE, Writes a FileDescriptorSet (a protocol buffer,
# --descriptor_set_out=FILE defined in descriptor.proto) containing all of
# the input files to FILE.
# setOut: /location/to/descriptor/out-filename
#
# optional: pass the --include_imports flag
# --include_imports When using --descriptor_set_out, also include
# all dependencies of the input files in the
# set, so that the set is self-contained.
# includeImports: True
#
# optional: pass the --include_source_info flag
# --include_source_info When using --descriptor_set_out, do not strip
# SourceCodeInfo from the FileDescriptorProto.
# This results in vastly larger descriptors that
# include information about the original
# location of each decl in the source file as
# well as surrounding comments.
# includeSourceInfo: True
plugin:
# optional: pin the version of the dart-proto-plugin
version: 21.1.2
sources:
# list of your local source files
- "proto/"
# - "proto2/"
# optional: specify the path for the generated output from protoc.
# Is relative from the project root. Defaults to "lib/src/generated"/
# output: "lib/src/generated"
include:
# extra paths to search or repos to download.
# You do not need to include google/protobuf - protofu uses the compiler's version.
- git:
url: https://github.com/googleapis/googleapis.git
ref: master # branch
# - /your/local/filesystem