Skip to content

Commit f51a5f0

Browse files
committed
fix: avoid duplicate copyright notices
1 parent 6c48425 commit f51a5f0

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
description: Mitigate synthtool adding a second copyright notice when one already exists
15+
url: https://github.com/googleapis/librarian/issues/4322
16+
replacements:
17+
- paths: [
18+
packages/googleapis-common-protos/google/gapic/metadata/gapic_metadata_pb2.pyi,
19+
packages/googleapis-common-protos/google/longrunning/operations_proto_pb2.pyi
20+
]
21+
before: |
22+
# Copyright 2025 Google LLC
23+
#
24+
# Licensed under the Apache License, Version 2.0 \(the "License"\);
25+
# you may not use this file except in compliance with the License.
26+
# You may obtain a copy of the License at
27+
#
28+
# http://www.apache.org/licenses/LICENSE-2.0
29+
#
30+
# Unless required by applicable law or agreed to in writing, software
31+
# distributed under the License is distributed on an "AS IS" BASIS,
32+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33+
# See the License for the specific language governing permissions and
34+
# limitations under the License.\n
35+
# Copyright 2025 Google LLC
36+
#
37+
# Licensed under the Apache License, Version 2.0 \(the "License"\);
38+
# you may not use this file except in compliance with the License.
39+
# You may obtain a copy of the License at
40+
#
41+
# http://www.apache.org/licenses/LICENSE-2.0
42+
#
43+
# Unless required by applicable law or agreed to in writing, software
44+
# distributed under the License is distributed on an "AS IS" BASIS,
45+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
46+
# See the License for the specific language governing permissions and
47+
# limitations under the License.
48+
after: |
49+
# Copyright 2025 Google LLC
50+
#
51+
# Licensed under the Apache License, Version 2.0 (the "License");
52+
# you may not use this file except in compliance with the License.
53+
# You may obtain a copy of the License at
54+
#
55+
# http://www.apache.org/licenses/LICENSE-2.0
56+
#
57+
# Unless required by applicable law or agreed to in writing, software
58+
# distributed under the License is distributed on an "AS IS" BASIS,
59+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
60+
# See the License for the specific language governing permissions and
61+
# limitations under the License.
62+
count: 2

0 commit comments

Comments
 (0)