Skip to content

Commit cc83c76

Browse files
Add script to replace Apache headers with SPDX (jaegertracing#5808)
## Which problem is this PR solving? - Resolves jaegertracing#5807 ## Description of the changes - Added a new Python script `update_license_headers.py` in the `./scripts/` directory - Replaces old Apache headers with SPDX identifiers - Works on .go files - No changes to source files are included in this PR. ## How was this change tested? - I gave it a spin on the `cmd` folder. Seemed to work fine - it found the right files and swapped out the headers. I checked a few of the updated files manually to make sure it did what it was supposed to. ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` --------- Signed-off-by: Prabhat <iprabhatdev@gmail.com> Signed-off-by: Prabhat Kumar Sahu <iprabhatdev@gmail.com> Signed-off-by: Yuri Shkuro <github@ysh.us> Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com> Co-authored-by: Yuri Shkuro <github@ysh.us>
1 parent a6ef7c3 commit cc83c76

File tree

809 files changed

+870
-9673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

809 files changed

+870
-9673
lines changed

cmd/agent/app/agent.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package app
176

cmd/agent/app/agent_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package app
176

cmd/agent/app/builder.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package app
176

cmd/agent/app/builder_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package app
176

cmd/agent/app/configmanager/grpc/manager.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// Copyright (c) 2018 The Jaeger Authors.
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.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package grpc
165

cmd/agent/app/configmanager/grpc/manager_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// Copyright (c) 2018 The Jaeger Authors.
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.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package grpc
165

cmd/agent/app/configmanager/manager.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package configmanager
176

cmd/agent/app/configmanager/metrics.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// Copyright (c) 2018 The Jaeger Authors.
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.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package configmanager
165

cmd/agent/app/configmanager/metrics_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// Copyright (c) 2018 The Jaeger Authors.
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.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package configmanager
165

cmd/agent/app/customtransport/buffered_read_transport.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package customtransport
176

cmd/agent/app/customtransport/buffered_read_transport_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package customtransport
176

cmd/agent/app/flags.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package app
176

cmd/agent/app/flags_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package app
176

cmd/agent/app/httpserver/srv.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package httpserver
176

cmd/agent/app/httpserver/srv_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package httpserver
176

cmd/agent/app/processors/package_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// Copyright (c) 2024 The Jaeger Authors.
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.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package processors
165

cmd/agent/app/processors/processor.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package processors
176

cmd/agent/app/processors/thrift_processor.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package processors
176

cmd/agent/app/processors/thrift_processor_test.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
// Copyright (c) 2019 The Jaeger Authors.
22
// Copyright (c) 2017 Uber Technologies, Inc.
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
3+
// SPDX-License-Identifier: Apache-2.0
154

165
package processors
176

cmd/agent/app/proxy_builders.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// Copyright (c) 2020 The Jaeger Authors.
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.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package app
165

cmd/agent/app/reporter/client_metrics.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// Copyright (c) 2020 The Jaeger Authors.
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.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
package reporter
165

0 commit comments

Comments
 (0)