Skip to content

Commit 8a70336

Browse files
authored
Remove the gRPC Authors copyright header from generated swift files (#1612)
Motivation: The common practice of code generators is not to apply their own copyright and license headers to generated files. Instead the output is owned by the owner of the input files and the executor of the code generator. Fixes #1611. Modifications: Removed license header from file generator, test case files, and checks for generated file license headers in the CI sanity license-check. Results: End users of protoc-gen-grpc-swift will not have a Copyright by gRPC Authors added to the generated swift files from their own proto files. Related: The copyright headers could be added back via #1610.
1 parent 9f4e2e4 commit 8a70336

File tree

16 files changed

+2
-280
lines changed

16 files changed

+2
-280
lines changed

Examples/Google/NaturalLanguage/Sources/language_service.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: google/cloud/language/v1/language_service.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import NIOConcurrencyHelpers

Sources/Examples/Echo/Model/echo.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: echo.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import NIOConcurrencyHelpers

Sources/Examples/HelloWorld/Model/helloworld.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: helloworld.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import NIOConcurrencyHelpers

Sources/Examples/RouteGuide/Model/route_guide.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: route_guide.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import NIOConcurrencyHelpers

Sources/GRPCInteroperabilityTestModels/Generated/test.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: src/proto/grpc/testing/test.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import NIOConcurrencyHelpers

Sources/protoc-gen-grpc-swift/Generator.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,6 @@ class Generator {
115115
//
116116
// Generated by the protocol buffer compiler.
117117
// Source: \(self.file.name)
118-
//
119-
120-
//
121-
// Copyright 2018, gRPC Authors All rights reserved.
122-
//
123-
// Licensed under the Apache License, Version 2.0 (the "License");
124-
// you may not use this file except in compliance with the License.
125-
// You may obtain a copy of the License at
126-
//
127-
// http://www.apache.org/licenses/LICENSE-2.0
128-
//
129-
// Unless required by applicable law or agreed to in writing, software
130-
// distributed under the License is distributed on an "AS IS" BASIS,
131-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132-
// See the License for the specific language governing permissions and
133-
// limitations under the License.
134118
//\n
135119
""")
136120

Tests/GRPCTests/Codegen/Normalization/normalization.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: normalization.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import NIOConcurrencyHelpers

dev/codegen-tests/01-echo/golden/echo.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: echo.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import SwiftProtobuf

dev/codegen-tests/02-multifile/golden/a.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: a.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import SwiftProtobuf

dev/codegen-tests/02-multifile/golden/b.grpc.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
// Generated by the protocol buffer compiler.
66
// Source: b.proto
77
//
8-
9-
//
10-
// Copyright 2018, gRPC Authors All rights reserved.
11-
//
12-
// Licensed under the Apache License, Version 2.0 (the "License");
13-
// you may not use this file except in compliance with the License.
14-
// You may obtain a copy of the License at
15-
//
16-
// http://www.apache.org/licenses/LICENSE-2.0
17-
//
18-
// Unless required by applicable law or agreed to in writing, software
19-
// distributed under the License is distributed on an "AS IS" BASIS,
20-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21-
// See the License for the specific language governing permissions and
22-
// limitations under the License.
23-
//
248
import GRPC
259
import NIO
2610
import SwiftProtobuf

0 commit comments

Comments
 (0)