From cdeb0d00919e6e832d0108370a125f7a2832fdbd Mon Sep 17 00:00:00 2001 From: pengluqiang Date: Thu, 21 Jul 2022 17:29:46 +0800 Subject: [PATCH] add license --- .github/workflows/main.yml | 17 +++++++++++++++++ .golangci.yml | 17 +++++++++++++++++ .pre-commit-config.yaml | 17 +++++++++++++++++ NOTICE | 5 +++++ conf/config.yaml | 17 +++++++++++++++++ goimports.sh | 17 +++++++++++++++++ makefile | 17 +++++++++++++++++ pkg/tm/global_transaction.go | 2 +- sample/tcc/dubbo/client/conf/dubbogo.yml | 17 +++++++++++++++++ sample/tcc/dubbo/server/conf/dubbogo.yml | 17 +++++++++++++++++ sample/tcc/grpc/cmd/tcc_grpc_transation.go | 17 +++++++++++++++++ sample/tcc/grpc/service/service.go | 17 +++++++++++++++++ testdata/sql/all_in_one.sql | 17 +++++++++++++++++ 13 files changed, 193 insertions(+), 1 deletion(-) create mode 100644 NOTICE diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 12fac0df9..fde9be6b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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. + */ + # This is a basic workflow to help you get started with Actions name: CI diff --git a/.golangci.yml b/.golangci.yml index 249babc13..d75d7c2db 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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. +# + linters-settings: govet: check-shadowing: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cb2d7cfa0..2845a2862 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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. +# + # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: diff --git a/NOTICE b/NOTICE new file mode 100644 index 000000000..156fcd47f --- /dev/null +++ b/NOTICE @@ -0,0 +1,5 @@ +Seata +Copyright 2019-2022 Seata.io Group. + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). \ No newline at end of file diff --git a/conf/config.yaml b/conf/config.yaml index 23a8f2dc8..696ee6960 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -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. +# + # 配置类;io.seata.spring.boot.autoconfigure.StarterConstants seata: diff --git a/goimports.sh b/goimports.sh index 34f35de96..d7f698199 100644 --- a/goimports.sh +++ b/goimports.sh @@ -1,2 +1,19 @@ +# +# 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. +# + go get -v golang.org/x/tools/cmd/goimports goimports -w . \ No newline at end of file diff --git a/makefile b/makefile index 90a209346..19898982e 100644 --- a/makefile +++ b/makefile @@ -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. +# + VERSION=$(shell cat "./VERSION" 2> /dev/null) GO_FLAGS := -ldflags "-X main.Branch=$(GIT_BRANCH) -X main.Revision=$(GIT_REVISION) -X main.Version=$(VERSION) -extldflags \"-static\" -s -w" -tags netgo diff --git a/pkg/tm/global_transaction.go b/pkg/tm/global_transaction.go index 0ad54af1a..e5d92abcb 100644 --- a/pkg/tm/global_transaction.go +++ b/pkg/tm/global_transaction.go @@ -35,7 +35,7 @@ type GlobalTransaction struct { } var ( - // singletone ResourceManagerFacade + // singleton ResourceManagerFacade globalTransactionManager *GlobalTransactionManager onceGlobalTransactionManager = &sync.Once{} ) diff --git a/sample/tcc/dubbo/client/conf/dubbogo.yml b/sample/tcc/dubbo/client/conf/dubbogo.yml index e1bd4ebd0..58c920c5e 100644 --- a/sample/tcc/dubbo/client/conf/dubbogo.yml +++ b/sample/tcc/dubbo/client/conf/dubbogo.yml @@ -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. + */ + # dubbo client yaml configure file dubbo: diff --git a/sample/tcc/dubbo/server/conf/dubbogo.yml b/sample/tcc/dubbo/server/conf/dubbogo.yml index 49747e8a8..0a765046e 100644 --- a/sample/tcc/dubbo/server/conf/dubbogo.yml +++ b/sample/tcc/dubbo/server/conf/dubbogo.yml @@ -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. + */ + # dubbo server yaml configure file dubbo: diff --git a/sample/tcc/grpc/cmd/tcc_grpc_transation.go b/sample/tcc/grpc/cmd/tcc_grpc_transation.go index 3c0e7f646..a3f8bb4c6 100644 --- a/sample/tcc/grpc/cmd/tcc_grpc_transation.go +++ b/sample/tcc/grpc/cmd/tcc_grpc_transation.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. + */ + package main import ( diff --git a/sample/tcc/grpc/service/service.go b/sample/tcc/grpc/service/service.go index 6d43c3366..8774d502a 100644 --- a/sample/tcc/grpc/service/service.go +++ b/sample/tcc/grpc/service/service.go @@ -1 +1,18 @@ +/* + * 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. + */ + package service diff --git a/testdata/sql/all_in_one.sql b/testdata/sql/all_in_one.sql index d1cfb5d29..f1301b8b6 100644 --- a/testdata/sql/all_in_one.sql +++ b/testdata/sql/all_in_one.sql @@ -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. + */ + DROP TABLE IF EXISTS `stock_tbl`; CREATE TABLE `stock_tbl` (