From 495b9a1215ebd04faba8f8ba48486b83336d0b3c Mon Sep 17 00:00:00 2001 From: YvCeung <93440108+YvCeung@users.noreply.github.com> Date: Fri, 25 Apr 2025 23:10:31 +0800 Subject: [PATCH] optimize: add ASF header to some files (#797) --- CONTRIBUTING.md | 16 ++++++++++++++++ README.md | 17 ++++++++++++++++- changes/2.0.0.md | 2 ++ changes/2.0.0_zh.md | 2 ++ pkg/datasource/sql/mock/README.md | 17 +++++++++++++++++ .../sql/undo/parser/branch_undo_log.pb.go | 17 +++++++++++++++++ pkg/discovery/mock/mock_etcd_client.go | 17 +++++++++++++++++ 7 files changed, 87 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d5e5bf4..f3d90ad4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,19 @@ + # Contributing to seata-go It is warmly welcomed if you have interest to hack on seata-go. First, we encourage this kind of willing very much. And here is a list of contributing guide for you. diff --git a/README.md b/README.md index e2f2bd07..dda79e22 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ + # Seata-go: Simple Extensible Autonomous Transaction Architecture(Go version) @@ -5,7 +21,6 @@ [![license](https://img.shields.io/github/license/apache/incubator-seata-go.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [简体中文 ZH](./README_ZH.md) - ## What is seata-go? Apache Seata(incubating) is a very mature distributed transaction framework, and is the de facto standard platform for distributed transaction technology in the Java field. Seata-go is the implementation version of go language in Seata multilingual ecosystem, which realizes the interoperability between Java and Go, so that Go developers can also use seata-go to realize distributed transactions. Please visit the [official website of Seata](https://seata.apache.org/) to view the quick start and documentation. diff --git a/changes/2.0.0.md b/changes/2.0.0.md index e051682a..93713d30 100644 --- a/changes/2.0.0.md +++ b/changes/2.0.0.md @@ -90,6 +90,7 @@ The version is updated as follows: - [[#686](https://github.com/apache/incubator-seata-go/pull/686)] add more linter in ci - [[#737](https://github.com/apache/incubator-seata-go/pull/737)] modify the readme file and update the currently completed work - [[#756](https://github.com/apache/incubator-seata-go/pull/756)] update license checker +- [[#797](https://github.com/apache/incubator-seata-go/pull/797)] add ASF header to some files ### contributors: @@ -127,6 +128,7 @@ Thanks to these contributors for their code commits. Please report an unintended - [funky-eyes](https://github.com/funky-eyes) - [tanzegen](https://github.com/tanzegen) - [lovepoem](https://github.com/lovepoem) +- [YvCeung](https://github.com/YvCeung) Also, we receive many valuable issues, questions and advices from our community. Thanks all. diff --git a/changes/2.0.0_zh.md b/changes/2.0.0_zh.md index 977e910e..c36d748e 100644 --- a/changes/2.0.0_zh.md +++ b/changes/2.0.0_zh.md @@ -90,6 +90,7 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 - [[#686](https://github.com/apache/incubator-seata-go/pull/686)] 在 ci 中添加更多的 linter - [[#737](https://github.com/apache/incubator-seata-go/pull/737)] 更新 readme 文件中已完成的工作 - [[#756](https://github.com/apache/incubator-seata-go/pull/756)] 添加 license 检查逻辑 +- [[#797](https://github.com/apache/incubator-seata-go/pull/797)] 给一些源文件添加 ASF header ### contributors: @@ -127,6 +128,7 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 - [funky-eyes](https://github.com/funky-eyes) - [tanzegen](https://github.com/tanzegen) - [lovepoem](https://github.com/lovepoem) +- [YvCeung](https://github.com/YvCeung) 同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。 diff --git a/pkg/datasource/sql/mock/README.md b/pkg/datasource/sql/mock/README.md index 554aa1cb..d56230ff 100644 --- a/pkg/datasource/sql/mock/README.md +++ b/pkg/datasource/sql/mock/README.md @@ -1,3 +1,20 @@ + + ```bash mockgen -source=test_driver.go -destination=./mock_driver.go -package=mock mockgen -source=../datasource/datasource_manager.go -destination=./mock_datasource_manager.go -package=mock diff --git a/pkg/datasource/sql/undo/parser/branch_undo_log.pb.go b/pkg/datasource/sql/undo/parser/branch_undo_log.pb.go index 4bdce65f..041a8aa5 100644 --- a/pkg/datasource/sql/undo/parser/branch_undo_log.pb.go +++ b/pkg/datasource/sql/undo/parser/branch_undo_log.pb.go @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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. + */ + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 diff --git a/pkg/discovery/mock/mock_etcd_client.go b/pkg/discovery/mock/mock_etcd_client.go index 5c3f63c1..d995ccdd 100644 --- a/pkg/discovery/mock/mock_etcd_client.go +++ b/pkg/discovery/mock/mock_etcd_client.go @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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. + */ + // Code generated by MockGen. DO NOT EDIT. // Source: test_etcd_client.go