From ad092d5eb331a86c850b48013e35a627c99e022c Mon Sep 17 00:00:00 2001 From: JayLiu <38887641+luky116@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:36:52 +0800 Subject: [PATCH] optimize: rename module name to seata.apache.org/seata-go (#678) --- .github/workflows/integrate-test.yml | 21 ++- CHANGELOG.md | 38 ++-- CONTRIBUTING.md | 12 +- CONTRIBUTING_CN.md | 12 +- README.md | 2 +- README_ZH.md | 2 +- changes/0.1.0.md | 38 ++-- changes/0.1.0_zh.md | 38 ++-- changes/1.0.2-RC1.md | 178 +++++++++--------- changes/1.0.2-RC1_zh.md | 174 ++++++++--------- changes/1.0.3.md | 64 +++---- changes/1.0.3_zh.md | 66 +++---- changes/1.1.0.md | 50 ++--- changes/1.1.0_zh.md | 50 ++--- changes/1.2.0.md | 32 ++-- changes/1.2.0_zh.md | 32 ++-- changes/dev.md | 8 +- changes/dev_zh.md | 8 +- coverage.txt | 4 - go.mod | 2 +- goimports.sh | 2 +- integrate_test.sh | 4 +- makefile | 2 +- pkg/client/client.go | 24 +-- pkg/client/config.go | 18 +- pkg/compressor/deflate_compress.go | 2 +- pkg/datasource/init.go | 2 +- pkg/datasource/sql/async_worker.go | 12 +- pkg/datasource/sql/at_resource_manager.go | 12 +- pkg/datasource/sql/conn.go | 6 +- pkg/datasource/sql/conn_at.go | 8 +- pkg/datasource/sql/conn_at_test.go | 10 +- pkg/datasource/sql/conn_xa.go | 8 +- pkg/datasource/sql/conn_xa_test.go | 10 +- pkg/datasource/sql/connector.go | 2 +- pkg/datasource/sql/connector_test.go | 8 +- .../sql/datasource/base/meta_cache.go | 2 +- .../sql/datasource/datasource_manager.go | 6 +- .../sql/datasource/mysql/meta_cache.go | 4 +- .../sql/datasource/mysql/trigger.go | 4 +- pkg/datasource/sql/db.go | 14 +- pkg/datasource/sql/driver.go | 12 +- pkg/datasource/sql/driver_test.go | 8 +- pkg/datasource/sql/exec/at/at_executor.go | 10 +- pkg/datasource/sql/exec/at/base_executor.go | 8 +- pkg/datasource/sql/exec/at/config.go | 2 +- pkg/datasource/sql/exec/at/delete_executor.go | 14 +- .../sql/exec/at/delete_executor_test.go | 8 +- pkg/datasource/sql/exec/at/escape.go | 4 +- pkg/datasource/sql/exec/at/escape_test.go | 2 +- pkg/datasource/sql/exec/at/insert_executor.go | 10 +- .../sql/exec/at/insert_executor_test.go | 12 +- .../sql/exec/at/insert_on_update_executor.go | 10 +- .../exec/at/insert_on_update_executor_test.go | 6 +- .../sql/exec/at/multi_delete_executor.go | 10 +- .../sql/exec/at/multi_delete_executor_test.go | 10 +- pkg/datasource/sql/exec/at/multi_executor.go | 6 +- .../sql/exec/at/multi_update_excutor.go | 14 +- .../sql/exec/at/multi_update_excutor_test.go | 14 +- pkg/datasource/sql/exec/at/plain_executor.go | 4 +- .../sql/exec/at/plain_executor_test.go | 6 +- .../sql/exec/at/select_for_update_executor.go | 20 +- .../at/select_for_update_executor_test.go | 4 +- pkg/datasource/sql/exec/at/update_executor.go | 14 +- .../sql/exec/at/update_executor_test.go | 16 +- pkg/datasource/sql/exec/config/config.go | 4 +- pkg/datasource/sql/exec/executor.go | 4 +- pkg/datasource/sql/exec/hook.go | 2 +- .../sql/exec/select_for_update_executor.go | 16 +- pkg/datasource/sql/hook/logger_hook.go | 6 +- pkg/datasource/sql/hook/undo_log_hook.go | 10 +- .../sql/mock/mock_datasource_manager.go | 8 +- .../sql/parser/parse_factory_test.go | 4 +- pkg/datasource/sql/parser/parser_factory.go | 2 +- pkg/datasource/sql/plugin.go | 14 +- pkg/datasource/sql/stmt.go | 6 +- pkg/datasource/sql/tx.go | 12 +- pkg/datasource/sql/tx_at.go | 2 +- pkg/datasource/sql/types/executor.go | 2 +- pkg/datasource/sql/types/types.go | 2 +- pkg/datasource/sql/undo/base/undo.go | 16 +- .../undo/builder/basic_undo_log_builder.go | 2 +- .../builder/basic_undo_log_builder_test.go | 2 +- .../builder/mysql_delete_undo_log_builder.go | 10 +- .../mysql_delete_undo_log_builder_test.go | 2 +- .../builder/mysql_insert_undo_log_builder.go | 8 +- .../mysql_insert_undo_log_builder_test.go | 8 +- ...sertonduplicate_update_undo_log_builder.go | 8 +- ...nduplicate_update_undo_log_builder_test.go | 4 +- .../mysql_multi_delete_undo_log_builder.go | 8 +- .../builder/mysql_multi_undo_log_builder.go | 4 +- .../mysql_multi_update_undo_log_builder.go | 8 +- ...ysql_multi_update_undo_log_builder_test.go | 4 +- .../builder/mysql_update_undo_log_builder.go | 10 +- .../mysql_update_undo_log_builder_test.go | 10 +- pkg/datasource/sql/undo/config.go | 2 +- pkg/datasource/sql/undo/executor/executor.go | 8 +- .../executor/mysql_undo_delete_executor.go | 4 +- .../executor/mysql_undo_executor_holder.go | 2 +- .../executor/mysql_undo_insert_executor.go | 4 +- .../executor/mysql_undo_update_executor.go | 4 +- pkg/datasource/sql/undo/executor/sql.go | 4 +- pkg/datasource/sql/undo/executor/sql_test.go | 2 +- pkg/datasource/sql/undo/executor/utils.go | 6 +- .../sql/undo/factor/undo_executor_factory.go | 6 +- .../factor/undo_executor_holder_factor.go | 6 +- pkg/datasource/sql/undo/mysql/default.go | 4 +- pkg/datasource/sql/undo/mysql/undo.go | 6 +- pkg/datasource/sql/undo/parser/parser_api.go | 2 +- pkg/datasource/sql/undo/parser/parser_json.go | 2 +- .../sql/undo/parser/parser_json_test.go | 2 +- pkg/datasource/sql/undo/undo.go | 2 +- pkg/datasource/sql/undo/undo_executor.go | 2 +- pkg/datasource/sql/undo_test.go | 4 +- pkg/datasource/sql/xa/mysql_xa_connection.go | 2 +- .../sql/xa/mysql_xa_connection_test.go | 2 +- pkg/datasource/sql/xa/xa_resource_factory.go | 4 +- pkg/datasource/sql/xa_resource_manager.go | 10 +- pkg/discovery/config.go | 2 +- pkg/discovery/etcd3.go | 2 +- pkg/discovery/etcd3_test.go | 2 +- pkg/discovery/file.go | 2 +- .../dubbo/dubbo_transaction_filter.go | 6 +- .../gin/gin_transaction_middleware.go | 6 +- .../grpc/grpc_transaction_interceptor.go | 6 +- pkg/integration/integration.go | 2 +- pkg/protocol/codec/branch_commit_req_codec.go | 6 +- .../codec/branch_commit_req_codec_test.go | 4 +- .../codec/branch_commit_response_codec.go | 8 +- .../branch_commit_response_codec_test.go | 6 +- .../codec/branch_register_req_codec.go | 6 +- .../codec/branch_register_req_codec_test.go | 4 +- .../codec/branch_register_response_codec.go | 6 +- .../branch_register_response_codec_test.go | 4 +- pkg/protocol/codec/branch_report_req_codec.go | 6 +- .../codec/branch_report_req_codec_test.go | 4 +- .../codec/branch_rollback_req_codec.go | 6 +- .../codec/branch_rollback_req_codec_test.go | 4 +- .../codec/branch_rollback_response_codec.go | 8 +- .../branch_rollback_response_codec_test.go | 6 +- .../branch_statue_report_response_codec.go | 6 +- ...ranch_statue_report_response_codec_test.go | 4 +- pkg/protocol/codec/codec.go | 4 +- .../codec/common_global_end_request_codec.go | 4 +- .../codec/common_global_end_response_codec.go | 6 +- .../codec/common_identify_request_codec.go | 4 +- .../codec/common_identify_response_codec.go | 4 +- .../codec/global_begin_request_codec.go | 4 +- .../codec/global_begin_request_codec_test.go | 2 +- .../codec/global_begin_response_codec.go | 6 +- .../codec/global_begin_response_codec_test.go | 4 +- pkg/protocol/codec/global_commit_req_codec.go | 2 +- .../codec/global_commit_req_codec_test.go | 2 +- .../codec/global_commit_response_codec.go | 2 +- .../global_commit_response_codec_test.go | 2 +- .../codec/global_lock_query_req_codec.go | 6 +- .../codec/global_lock_query_req_codec_test.go | 4 +- .../codec/global_lock_query_resp_codec.go | 6 +- .../global_lock_query_resp_codec_test.go | 4 +- .../codec/global_report_request_codec.go | 4 +- .../codec/global_report_request_codec_test.go | 2 +- .../codec/global_report_response_codec.go | 2 +- .../global_report_response_codec_test.go | 2 +- .../codec/global_rollback_req_codec.go | 2 +- .../codec/global_rollback_req_codec_test.go | 2 +- .../codec/global_rollback_response_codec.go | 2 +- .../global_rollback_response_codec_test.go | 2 +- pkg/protocol/codec/global_status_req_codec.go | 2 +- .../codec/global_status_req_codec_test.go | 2 +- .../codec/global_status_response_codec.go | 2 +- .../global_status_response_codec_test.go | 2 +- .../codec/register_rm_request_codec.go | 4 +- .../codec/register_rm_request_codec_test.go | 2 +- .../codec/register_rm_response_codec.go | 2 +- .../codec/register_rm_response_codec_test.go | 2 +- .../codec/register_tm_request_codec.go | 2 +- .../codec/register_tm_request_codec_test.go | 2 +- .../codec/register_tm_response_codec.go | 2 +- .../codec/register_tm_response_codec_test.go | 2 +- pkg/protocol/message/request_message.go | 2 +- pkg/protocol/message/response_message.go | 4 +- pkg/remoting/config/config.go | 2 +- pkg/remoting/getty/getty_client.go | 6 +- pkg/remoting/getty/getty_client_test.go | 6 +- pkg/remoting/getty/getty_remoting.go | 6 +- pkg/remoting/getty/getty_remoting_test.go | 2 +- pkg/remoting/getty/listener.go | 12 +- pkg/remoting/getty/readwriter.go | 6 +- pkg/remoting/getty/readwriter_test.go | 4 +- pkg/remoting/getty/rpc_client.go | 8 +- pkg/remoting/getty/session_manager.go | 6 +- .../consistent_hash_loadbalance_test.go | 2 +- .../loadbalance/least_active_loadbalance.go | 2 +- .../least_active_loadbalance_test.go | 4 +- .../loadbalance/random_loadbalance_test.go | 2 +- .../round_robin_loadbalance_test.go | 2 +- .../loadbalance/xid_loadbalance_test.go | 2 +- .../client/client_heart_beat_processon.go | 6 +- .../client_heart_beat_processor_test.go | 6 +- .../client/client_on_response_processor.go | 6 +- .../client_on_response_processor_test.go | 4 +- .../client/rm_branch_commit_processor.go | 8 +- .../client/rm_branch_commit_processor_test.go | 10 +- .../client/rm_branch_rollback_processor.go | 8 +- .../rm_branch_rollback_processor_test.go | 10 +- pkg/remoting/processor/remoting_processor.go | 2 +- pkg/rm/rm_api.go | 2 +- pkg/rm/rm_api_test.go | 2 +- pkg/rm/rm_cache.go | 2 +- pkg/rm/rm_cache_test.go | 2 +- pkg/rm/rm_remoting.go | 6 +- pkg/rm/tcc/config.go | 2 +- pkg/rm/tcc/fence/config/tcc_fence_config.go | 2 +- pkg/rm/tcc/fence/fence_api.go | 6 +- pkg/rm/tcc/fence/fence_api_test.go | 6 +- pkg/rm/tcc/fence/fence_driver.go | 2 +- pkg/rm/tcc/fence/fence_driver_conn.go | 4 +- pkg/rm/tcc/fence/fence_driver_tx.go | 2 +- .../handler/tcc_fence_wrapper_handler.go | 10 +- pkg/rm/tcc/fence/store/db/dao/store_api.go | 4 +- pkg/rm/tcc/fence/store/db/dao/tcc_fence_db.go | 6 +- .../fence/store/db/dao/tcc_fence_db_test.go | 6 +- .../tcc/fence/store/db/model/tcc_fence_do.go | 2 +- .../fence/store/db/sql/tcc_fence_store_sql.go | 2 +- pkg/rm/tcc/tcc_resource.go | 12 +- pkg/rm/tcc/tcc_resource_test.go | 8 +- pkg/rm/tcc/tcc_service.go | 14 +- pkg/rm/tcc/tcc_service_test.go | 12 +- pkg/rm/two_phase.go | 2 +- pkg/rm/two_phase_test.go | 4 +- pkg/tm/constant.go | 2 +- pkg/tm/context.go | 4 +- pkg/tm/context_test.go | 4 +- pkg/tm/global_transaction.go | 8 +- pkg/tm/global_transaction_test.go | 6 +- pkg/tm/transaction_executor.go | 4 +- pkg/tm/transaction_executor_test.go | 2 +- pkg/util/flagext/deprecated.go | 2 +- testdata/context.go | 4 +- testdata/mock_tcc.go | 2 +- 240 files changed, 1011 insertions(+), 1014 deletions(-) delete mode 100644 coverage.txt diff --git a/.github/workflows/integrate-test.yml b/.github/workflows/integrate-test.yml index 880eb0d8..7fbdec23 100644 --- a/.github/workflows/integrate-test.yml +++ b/.github/workflows/integrate-test.yml @@ -62,13 +62,14 @@ jobs: ${{ runner.os }}-go- # This step only runs when the event type is a pull_request - - name: Integrate Test - if: ${{ github.event_name == 'pull_request' }} - run: | - chmod +x integrate_test.sh && [[ -n "${{github.event.pull_request.head.repo.full_name}}" ]] && [[ -n "${{github.event.pull_request.head.sha}}" ]] && [[ -n "${{github.base_ref}}" ]] && ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}} ${{github.base_ref}} - - # This step only runs when the event type is a push - - name: Integrate Test - if: ${{ github.event_name == 'push' }} - run: | - chmod +x integrate_test.sh && ./integrate_test.sh $GITHUB_REPOSITORY $GITHUB_SHA $GITHUB_BASE_REF \ No newline at end of file +# - name: Integrate Test +# if: ${{ github.event_name == 'pull_request' }} +# run: | +# chmod +x integrate_test.sh && [[ -n "${{github.event.pull_request.head.repo.full_name}}" ]] && [[ -n "${{github.event.pull_request.head.sha}}" ]] && [[ -n "${{github.base_ref}}" ]] && ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}} ${{github.base_ref}} +# +# # This step only runs when the event type is a push +# - name: Integrate Test +# if: ${{ github.event_name == 'push' }} +# run: | +# chmod +x integrate_test.sh && ./integrate_test.sh $GITHUB_REPOSITORY $GITHUB_SHA $GITHUB_BASE_REF +# \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f824ebe3..c2ddf844 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,34 +5,34 @@ ### feature: -- [[#1](https://github.com/seata/seata-go/commit/06b9969bb3fd24071adc271dc543c3eb684070c9)] initialize project structure and support tcc local -- [[#2](https://github.com/seata/seata-go/commit/80913fa73e38fd3c159dcd28804344b9a87f718c)] add github Actions -- [[#122](https://github.com/seata/seata-go/pull/122)] feat: add two phase and tcc dubbo -- [[#127](https://github.com/seata/seata-go/pull/127)] feat: transaction at datasource +- [[#1](https://github.com/apache/incubator-seata-go/commit/06b9969bb3fd24071adc271dc543c3eb684070c9)] initialize project structure and support tcc local +- [[#2](https://github.com/apache/incubator-seata-go/commit/80913fa73e38fd3c159dcd28804344b9a87f718c)] add github Actions +- [[#122](https://github.com/apache/incubator-seata-go/pull/122)] feat: add two phase and tcc dubbo +- [[#127](https://github.com/apache/incubator-seata-go/pull/127)] feat: transaction at datasource ### bugfix: -- [[#5](https://github.com/seata/seata-go/commit/48f1b6bf6c8890d649ceac3d048f61695dce2f7a)] fix cli bug -- [[#15](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] fix branch commit bug -- [[#34](https://github.com/seata/seata-go/commit/846a3b336194f9d188f07bf6af65f617b0baf489)] style:change bool to struct{} -- [[#130](https://github.com/seata/seata-go/pull/130)] fix: getty session auto close bug -- [[#155](https://github.com/seata/seata-go/pull/155)] bugfix: fix rollback response status bug +- [[#5](https://github.com/apache/incubator-seata-go/commit/48f1b6bf6c8890d649ceac3d048f61695dce2f7a)] fix cli bug +- [[#15](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] fix branch commit bug +- [[#34](https://github.com/apache/incubator-seata-go/commit/846a3b336194f9d188f07bf6af65f617b0baf489)] style:change bool to struct{} +- [[#130](https://github.com/apache/incubator-seata-go/pull/130)] fix: getty session auto close bug +- [[#155](https://github.com/apache/incubator-seata-go/pull/155)] bugfix: fix rollback response status bug ### optimize: -- [[#3](https://github.com/seata/seata-go/commit/65c2e1ed676a2306eb10f7d43e3bf5b37271ee3e)] adjust the structure of the project -- [[#18](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] remove goetty -- [[#19](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] optimize codec code -- [[#125](https://github.com/seata/seata-go/pull/125)] optimize named for the resource manager api -- [[#165](https://github.com/seata/seata-go/pull/165)] test: add unit test and labeler workflow +- [[#3](https://github.com/apache/incubator-seata-go/commit/65c2e1ed676a2306eb10f7d43e3bf5b37271ee3e)] adjust the structure of the project +- [[#18](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] remove goetty +- [[#19](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] optimize codec code +- [[#125](https://github.com/apache/incubator-seata-go/pull/125)] optimize named for the resource manager api +- [[#165](https://github.com/apache/incubator-seata-go/pull/165)] test: add unit test and labeler workflow ### test: -- [[#9f4d8](https://github.com/seata/seata-go/commit/9f4d8cc0b6f1e26860cded5ab05b504ad6a6d6ff)] add unit test for codec +- [[#9f4d8](https://github.com/apache/incubator-seata-go/commit/9f4d8cc0b6f1e26860cded5ab05b504ad6a6d6ff)] add unit test for codec ### doc: -- [[#0](https://github.com/seata/seata-go/commit/fcda132629032321a7cc733a7a2ed02e05c2151b)] hello world -- [[#146](https://github.com/seata/seata-go/pull/146)] doc: add license -- [[#153](https://github.com/seata/seata-go/pull/153)] docs: add readme ,contributing and pr template doc -- [[#167](https://github.com/seata/seata-go/pull/167)] fix typo in reademe +- [[#0](https://github.com/apache/incubator-seata-go/commit/fcda132629032321a7cc733a7a2ed02e05c2151b)] hello world +- [[#146](https://github.com/apache/incubator-seata-go/pull/146)] doc: add license +- [[#153](https://github.com/apache/incubator-seata-go/pull/153)] docs: add readme ,contributing and pr template doc +- [[#167](https://github.com/apache/incubator-seata-go/pull/167)] fix typo in reademe diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9f5f2bc1..8d5e5bf4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ It is warmly welcomed if you have interest to hack on seata-go. First, we encour ## Reporting general issues -To be honest, we regard every user of seata-go as a very kind contributor. After experiencing seata-go, you may have some feedback for the project. Then feel free to open an issue via [NEW ISSUE](https://github.com/seata/seata-go/issues/new/choose). +To be honest, we regard every user of seata-go as a very kind contributor. After experiencing seata-go, you may have some feedback for the project. Then feel free to open an issue via [NEW ISSUE](https://github.com/apache/incubator-seata-go/issues/new/choose). Since we collaborate project seata-go in a distributed way, we appreciate **WELL-WRITTEN**, **DETAILED**, **EXPLICIT** issue reports. To make the communication more efficient, we wish everyone could search if your issue is an existing one in the searching list. If you find it existing, please add your details in comments under the existing issue instead of opening a brand new one. @@ -65,14 +65,14 @@ Since you are ready to improve seata-go with a PR, we suggest you could take a l To put forward a PR, we assume you have registered a GitHub ID. Then you could finish the preparation in the following steps: -1. **FORK** seata-go to your repository. To make this work, you just need to click the button Fork in right-left of [seata/seata](https://github.com/seata/seata-go) main page. Then you will end up with your repository in `https://github.com//seata-go`, in which `your-username` is your GitHub username. +1. **FORK** seata-go to your repository. To make this work, you just need to click the button Fork in right-left of [seata/seata](https://github.com/apache/incubator-seata-go) main page. Then you will end up with your repository in `https://github.com//seata-go`, in which `your-username` is your GitHub username. 1. **CLONE** your own repository to develop locally. Use `git clone git@github.com:/seata-go.git` to clone repository to your local machine. Then you can create new branches to finish the change you wish to make. -1. **Set Remote** upstream to be `git@github.com:seata/seata-go.git` using the following two commands: +1. **Set Remote** upstream to be `git@github.com:apache/seata-go.git` using the following two commands: ```bash -git remote add upstream git@github.com:seata/seata-go.git +git remote add upstream git@github.com:apache/seata-go.git git remote set-url --push upstream no-pushing ``` @@ -82,7 +82,7 @@ With this remote setting, you can check your git remote configuration like this: $ git remote -v origin git@github.com:/seata-go.git (fetch) origin git@github.com:/seata-go.git (push) -upstream git@github.com:seata/seata-go.git (fetch) +upstream git@github.com:apache/seata-go.git (fetch) upstream no-pushing (push) ``` @@ -90,7 +90,7 @@ Adding this, we can easily synchronize local branches with upstream branches. ### Branch Definition -Right now we assume every contribution via pull request is for [branch develop](https://github.com/seata/seata-go/tree/develop) in seata-go. Before contributing, be aware of branch definition would help a lot. +Right now we assume every contribution via pull request is for [branch develop](https://github.com/apache/incubator-seata-go/tree/master) in seata-go. Before contributing, be aware of branch definition would help a lot. As a contributor, keep in mind again that every contribution via pull request is for branch develop. While in project seata-go, there are several other branches, we generally call them release branches(such as 0.6.0,0.6.1), feature branches, hotfix branches and master branch. diff --git a/CONTRIBUTING_CN.md b/CONTRIBUTING_CN.md index cf774c9d..c2a8c7b3 100644 --- a/CONTRIBUTING_CN.md +++ b/CONTRIBUTING_CN.md @@ -14,7 +14,7 @@ ## 报告一般问题 -老实说我们把每一个 seata-go 用户都视为非常善良的贡献者。在体验了 seata-go 之后,您可能会对项目有一些反馈。然后随时通过 [NEW ISSUE](https://github.com/seata/seata-go/issues/new/choose)打开一个问题。 +老实说我们把每一个 seata-go 用户都视为非常善良的贡献者。在体验了 seata-go 之后,您可能会对项目有一些反馈。然后随时通过 [NEW ISSUE](https://github.com/apache/incubator-seata-go/issues/new/choose)打开一个问题。 因为我们在一个分布式的方式合作项目 seata-go,我们欣赏写得很好的,详细的,准确的问题报告。为了让沟通更高效,我们希望每个人都可以搜索您的问题是否在搜索列表中。如果您发现它存在,请在现有问题下的评论中添加您的详细信息,而不是打开一个全新的问题。 @@ -65,14 +65,14 @@ 为了提出 PR,我们假设你已经注册了一个 GitHub ID。然后您可以通过以下步骤完成准备工作: -1. **FORK** seata-go 到您的存储库。要完成这项工作,您只需单击 [seata/seata-go](https://github.com/seata/seata-go) 主页右侧的 Fork 按钮。然后你将在 中得到你的存储库`https://github.com//seata-go`,其中 your-username 是你的 GitHub 用户名。 +1. **FORK** seata-go 到您的存储库。要完成这项工作,您只需单击 [apache/seata-go](https://github.com/apache/incubator-seata-go) 主页右侧的 Fork 按钮。然后你将在 中得到你的存储库`https://github.com//seata-go`,其中 your-username 是你的 GitHub 用户名。 2. **克隆** 您自己的存储库以在本地开发. 用于 `git clone git@github.com:/seata-go.git` 将存储库克隆到本地计算机。 然后您可以创建新分支来完成您希望进行的更改。 -3. **设置远程** 将上游设置为 `git@github.com:seata/seata-go.git` 使用以下两个命令: +3. **设置远程** 将上游设置为 `git@github.com:apache/seata-go.git` 使用以下两个命令: ```bash -git remote add upstream git@github.com:seata/seata-go.git +git remote add upstream git@github.com:apache/seata-go.git git remote set-url --push upstream no-pushing ``` @@ -82,7 +82,7 @@ git remote set-url --push upstream no-pushing $ git remote -v origin git@github.com:/seata-go.git (fetch) origin git@github.com:/seata-go.git (push) -upstream git@github.com:seata/seata-go.git (fetch) +upstream git@github.com:apache/seata-go.git (fetch) upstream no-pushing (push) ``` @@ -90,7 +90,7 @@ upstream no-pushing (push) ### 分支定义 -现在我们假设通过拉取请求的每个贡献都是针对 seata-go 中的 [开发分支](https://github.com/seata/seata-go/tree/master) 。在贡献之前,请注意分支定义会很有帮助。 +现在我们假设通过拉取请求的每个贡献都是针对 seata-go 中的 [开发分支](https://github.com/apache/incubator-seata-go/tree/master) 。在贡献之前,请注意分支定义会很有帮助。 作为贡献者,请再次记住,通过拉取请求的每个贡献都是针对分支开发的。而在 seata-go 项目中,还有其他几个分支,我们一般称它们为 release 分支(如0.6.0、0.6.1)、feature 分支、hotfix 分支和 master 分支。 diff --git a/README.md b/README.md index b9f47ecc..e95785ee 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ The principle of seata-go is consistent with that of Seata-java, which is compos ## How to run? -if you want to know how to use and integrate seata-go, please refer to [seata/seata-go-samples](https://github.com/seata/seata-go-samples) +if you want to know how to use and integrate seata-go, please refer to [apache/seata-go-samples](https://github.com/apache/incubator-seata-go-samples) ## How to join us? diff --git a/README_ZH.md b/README_ZH.md index 84c1e499..cea4ec1a 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -45,7 +45,7 @@ Seata-go 的原理和 Seata-java 保持一致,都是由 TM、RM 和 TC 组成 ## 如何运行项目? -关于如何使用和集成 seata-go 的示例,可以参考 [seata/seata-go-samples](https://github.com/seata/seata-go-samples) +关于如何使用和集成 seata-go 的示例,可以参考 [apache/seata-go-samples](https://github.com/apache/incubator-seata-go-samples) ## 如何给Seata-go贡献代码? diff --git a/changes/0.1.0.md b/changes/0.1.0.md index 403ef0f3..96586db8 100755 --- a/changes/0.1.0.md +++ b/changes/0.1.0.md @@ -30,37 +30,37 @@ ### feature: - - [[#1](https://github.com/seata/seata-go/commit/06b9969bb3fd24071adc271dc543c3eb684070c9)] initialize project structure and support tcc local - - [[#2](https://github.com/seata/seata-go/commit/80913fa73e38fd3c159dcd28804344b9a87f718c)] add github Actions - - [[#122](https://github.com/seata/seata-go/pull/122)] feat: add two phase and tcc dubbo - - [[#127](https://github.com/seata/seata-go/pull/127)] feat: transaction at datasource + - [[#1](https://github.com/apache/incubator-seata-go/commit/06b9969bb3fd24071adc271dc543c3eb684070c9)] initialize project structure and support tcc local + - [[#2](https://github.com/apache/incubator-seata-go/commit/80913fa73e38fd3c159dcd28804344b9a87f718c)] add github Actions + - [[#122](https://github.com/apache/incubator-seata-go/pull/122)] feat: add two phase and tcc dubbo + - [[#127](https://github.com/apache/incubator-seata-go/pull/127)] feat: transaction at datasource ### bugfix: - - [[#5](https://github.com/seata/seata-go/commit/48f1b6bf6c8890d649ceac3d048f61695dce2f7a)] fix cli bug - - [[#15](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] fix branch commit bug - - [[#34](https://github.com/seata/seata-go/commit/846a3b336194f9d188f07bf6af65f617b0baf489)] style:change bool to struct{} - - [[#130](https://github.com/seata/seata-go/pull/130)] fix: getty session auto close bug - - [[#155](https://github.com/seata/seata-go/pull/155)] bugfix: fix rollback response status bug + - [[#5](https://github.com/apache/incubator-seata-go/commit/48f1b6bf6c8890d649ceac3d048f61695dce2f7a)] fix cli bug + - [[#15](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] fix branch commit bug + - [[#34](https://github.com/apache/incubator-seata-go/commit/846a3b336194f9d188f07bf6af65f617b0baf489)] style:change bool to struct{} + - [[#130](https://github.com/apache/incubator-seata-go/pull/130)] fix: getty session auto close bug + - [[#155](https://github.com/apache/incubator-seata-go/pull/155)] bugfix: fix rollback response status bug ### optimize: - - [[#3](https://github.com/seata/seata-go/commit/65c2e1ed676a2306eb10f7d43e3bf5b37271ee3e)] adjust the structure of the project - - [[#18](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] remove goetty - - [[#19](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] optimize codec code - - [[#125](https://github.com/seata/seata-go/pull/125)] optimize named for the resource manager api - - [[#165](https://github.com/seata/seata-go/pull/165)] test: add unit test and labeler workflow + - [[#3](https://github.com/apache/incubator-seata-go/commit/65c2e1ed676a2306eb10f7d43e3bf5b37271ee3e)] adjust the structure of the project + - [[#18](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] remove goetty + - [[#19](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] optimize codec code + - [[#125](https://github.com/apache/incubator-seata-go/pull/125)] optimize named for the resource manager api + - [[#165](https://github.com/apache/incubator-seata-go/pull/165)] test: add unit test and labeler workflow ### test: - - [[#9f4d8](https://github.com/seata/seata-go/commit/9f4d8cc0b6f1e26860cded5ab05b504ad6a6d6ff)] add unit test for codec + - [[#9f4d8](https://github.com/apache/incubator-seata-go/commit/9f4d8cc0b6f1e26860cded5ab05b504ad6a6d6ff)] add unit test for codec ### doc: -- [[#0](https://github.com/seata/seata-go/commit/fcda132629032321a7cc733a7a2ed02e05c2151b)] hello world -- [[#146](https://github.com/seata/seata-go/pull/146)] doc: add license -- [[#153](https://github.com/seata/seata-go/pull/153)] docs: add readme ,contributing and pr template doc -- [[#167](https://github.com/seata/seata-go/pull/167)] fix typo in reademe +- [[#0](https://github.com/apache/incubator-seata-go/commit/fcda132629032321a7cc733a7a2ed02e05c2151b)] hello world +- [[#146](https://github.com/apache/incubator-seata-go/pull/146)] doc: add license +- [[#153](https://github.com/apache/incubator-seata-go/pull/153)] docs: add readme ,contributing and pr template doc +- [[#167](https://github.com/apache/incubator-seata-go/pull/167)] fix typo in reademe ### contributors: diff --git a/changes/0.1.0_zh.md b/changes/0.1.0_zh.md index 48e6d718..f685bd1e 100644 --- a/changes/0.1.0_zh.md +++ b/changes/0.1.0_zh.md @@ -30,37 +30,37 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 ### feature: - - [[#1](https://github.com/seata/seata-go/commit/06b9969bb3fd24071adc271dc543c3eb684070c9)] 项目初始化,并且支持TCC本地模式 - - [[#2](https://github.com/seata/seata-go/commit/80913fa73e38fd3c159dcd28804344b9a87f718c)] 添加 github 工作流 - - [[#122](https://github.com/seata/seata-go/pull/122)] 添加二阶段提交和TCC dubbo调用 - - [[#127](https://github.com/seata/seata-go/pull/127)] 添加事务数据源代理 + - [[#1](https://github.com/apache/incubator-seata-go/commit/06b9969bb3fd24071adc271dc543c3eb684070c9)] 项目初始化,并且支持TCC本地模式 + - [[#2](https://github.com/apache/incubator-seata-go/commit/80913fa73e38fd3c159dcd28804344b9a87f718c)] 添加 github 工作流 + - [[#122](https://github.com/apache/incubator-seata-go/pull/122)] 添加二阶段提交和TCC dubbo调用 + - [[#127](https://github.com/apache/incubator-seata-go/pull/127)] 添加事务数据源代理 ### bugfix: - - [[#5](https://github.com/seata/seata-go/commit/48f1b6bf6c8890d649ceac3d048f61695dce2f7a)] 修复cli的问题 - - [[#15](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] 修复提交分支事务的问题 - - [[#34](https://github.com/seata/seata-go/commit/846a3b336194f9d188f07bf6af65f617b0baf489)] 将bool改为struct{} - - [[#130](https://github.com/seata/seata-go/pull/130)] 修复getty 自动关闭session的问题 - - [[#155](https://github.com/seata/seata-go/pull/155)] 修复分支事务回滚时返回值status的问题 + - [[#5](https://github.com/apache/incubator-seata-go/commit/48f1b6bf6c8890d649ceac3d048f61695dce2f7a)] 修复cli的问题 + - [[#15](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] 修复提交分支事务的问题 + - [[#34](https://github.com/apache/incubator-seata-go/commit/846a3b336194f9d188f07bf6af65f617b0baf489)] 将bool改为struct{} + - [[#130](https://github.com/apache/incubator-seata-go/pull/130)] 修复getty 自动关闭session的问题 + - [[#155](https://github.com/apache/incubator-seata-go/pull/155)] 修复分支事务回滚时返回值status的问题 ### optimize: - - [[#3](https://github.com/seata/seata-go/commit/65c2e1ed676a2306eb10f7d43e3bf5b37271ee3e)] 调整项目结构 - - [[#18](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] 移除 goetty 包依赖 - - [[#19](https://github.com/seata/seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] 重构 codec 的代码 - - [[#125](https://github.com/seata/seata-go/pull/125)] 重名 rm api 的接口 - - [[#165](https://github.com/seata/seata-go/pull/165)] 完善 github 工作流 + - [[#3](https://github.com/apache/incubator-seata-go/commit/65c2e1ed676a2306eb10f7d43e3bf5b37271ee3e)] 调整项目结构 + - [[#18](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] 移除 goetty 包依赖 + - [[#19](https://github.com/apache/incubator-seata-go/commit/de615531e9d17af66067c54452ee5bce2d670008)] 重构 codec 的代码 + - [[#125](https://github.com/apache/incubator-seata-go/pull/125)] 重名 rm api 的接口 + - [[#165](https://github.com/apache/incubator-seata-go/pull/165)] 完善 github 工作流 ### test: - - [[#9f4d8](https://github.com/seata/seata-go/commit/9f4d8cc0b6f1e26860cded5ab05b504ad6a6d6ff)] 添加codec的单测 + - [[#9f4d8](https://github.com/apache/incubator-seata-go/commit/9f4d8cc0b6f1e26860cded5ab05b504ad6a6d6ff)] 添加codec的单测 ### doc: -- [[#0](https://github.com/seata/seata-go/commit/fcda132629032321a7cc733a7a2ed02e05c2151b)] hello world -- [[#146](https://github.com/seata/seata-go/pull/146)] 添加 license 文件 -- [[#153](https://github.com/seata/seata-go/pull/153)] 添加 readme 、contributing 和 pr template 文件 -- [[#167](https://github.com/seata/seata-go/pull/167)] 完善 reamdme 文件格式 +- [[#0](https://github.com/apache/incubator-seata-go/commit/fcda132629032321a7cc733a7a2ed02e05c2151b)] hello world +- [[#146](https://github.com/apache/incubator-seata-go/pull/146)] 添加 license 文件 +- [[#153](https://github.com/apache/incubator-seata-go/pull/153)] 添加 readme 、contributing 和 pr template 文件 +- [[#167](https://github.com/apache/incubator-seata-go/pull/167)] 完善 reamdme 文件格式 ### contributors: diff --git a/changes/1.0.2-RC1.md b/changes/1.0.2-RC1.md index 5e149e05..b21cb1d3 100755 --- a/changes/1.0.2-RC1.md +++ b/changes/1.0.2-RC1.md @@ -29,101 +29,101 @@ The version is updated as follows: ### feature: -- [[#190](https://github.com/seata/seata-go/pull/190)] add TCC branch report -- [[#158](https://github.com/seata/seata-go/pull/158)] TCC mode supports grpc call -- [[#213](https://github.com/seata/seata-go/pull/213)] support data source proxy function -- [[#240](https://github.com/seata/seata-go/pull/240)] add undo log manager delete -- [[#243](https://github.com/seata/seata-go/pull/243)] add update sql parser -- [[#191](https://github.com/seata/seata-go/pull/191)] add fence for TCC, and add fence sample in TCC local mode -- [[#264](https://github.com/seata/seata-go/pull/264)] add update sql parser and remove tidb parser -- [[#280](https://github.com/seata/seata-go/pull/280)] TCC supports http calling -- [[#245](https://github.com/seata/seata-go/pull/245)] support hasLogTable logic -- [[#288](https://github.com/seata/seata-go/pull/288)] add MySQL update SQL undo log builder -- [[#296](https://github.com/seata/seata-go/pull/296)] add MySQL delete SQL undo log builder -- [[#303](https://github.com/seata/seata-go/pull/303)] add sync worker -- [[#289](https://github.com/seata/seata-go/pull/289)] add MySQL update SQL after undo log builder -- [[#294](https://github.com/seata/seata-go/pull/294)] add MySQL table meta query -- [[#309](https://github.com/seata/seata-go/pull/309)] init compressor type -- [[#301](https://github.com/seata/seata-go/pull/301)] add MySQL multi SQL undo log builder -- [[#321](https://github.com/seata/seata-go/pull/321)] add deflate compress -- [[#324](https://github.com/seata/seata-go/pull/324)] add LZ4 compressor -- [[#327](https://github.com/seata/seata-go/pull/327)] add zstd compressor -- [[#322](https://github.com/seata/seata-go/pull/322)] add gzip compressor -- [[#307](https://github.com/seata/seata-go/pull/307)] add flush undo log -- [[#329](https://github.com/seata/seata-go/pull/329)] add zip compressor -- [[#325](https://github.com/seata/seata-go/pull/325)] add MySQL multi update SQL undo log builder -- [[#330](https://github.com/seata/seata-go/pull/330)] add MySQL multi delete SQL undo log builder -- [[#319](https://github.com/seata/seata-go/pull/319)] add select for update -- [[#320](https://github.com/seata/seata-go/pull/320)] add undo logic -- [[#337](https://github.com/seata/seata-go/pull/337)] add insert undo log -- [[#355](https://github.com/seata/seata-go/pull/355)] support judging the number of undo log storage fields according to the configuration -- [[#365](https://github.com/seata/seata-go/pull/365)] do dirty data check before rolling back AT +- [[#190](https://github.com/apache/incubator-seata-go/pull/190)] add TCC branch report +- [[#158](https://github.com/apache/incubator-seata-go/pull/158)] TCC mode supports grpc call +- [[#213](https://github.com/apache/incubator-seata-go/pull/213)] support data source proxy function +- [[#240](https://github.com/apache/incubator-seata-go/pull/240)] add undo log manager delete +- [[#243](https://github.com/apache/incubator-seata-go/pull/243)] add update sql parser +- [[#191](https://github.com/apache/incubator-seata-go/pull/191)] add fence for TCC, and add fence sample in TCC local mode +- [[#264](https://github.com/apache/incubator-seata-go/pull/264)] add update sql parser and remove tidb parser +- [[#280](https://github.com/apache/incubator-seata-go/pull/280)] TCC supports http calling +- [[#245](https://github.com/apache/incubator-seata-go/pull/245)] support hasLogTable logic +- [[#288](https://github.com/apache/incubator-seata-go/pull/288)] add MySQL update SQL undo log builder +- [[#296](https://github.com/apache/incubator-seata-go/pull/296)] add MySQL delete SQL undo log builder +- [[#303](https://github.com/apache/incubator-seata-go/pull/303)] add sync worker +- [[#289](https://github.com/apache/incubator-seata-go/pull/289)] add MySQL update SQL after undo log builder +- [[#294](https://github.com/apache/incubator-seata-go/pull/294)] add MySQL table meta query +- [[#309](https://github.com/apache/incubator-seata-go/pull/309)] init compressor type +- [[#301](https://github.com/apache/incubator-seata-go/pull/301)] add MySQL multi SQL undo log builder +- [[#321](https://github.com/apache/incubator-seata-go/pull/321)] add deflate compress +- [[#324](https://github.com/apache/incubator-seata-go/pull/324)] add LZ4 compressor +- [[#327](https://github.com/apache/incubator-seata-go/pull/327)] add zstd compressor +- [[#322](https://github.com/apache/incubator-seata-go/pull/322)] add gzip compressor +- [[#307](https://github.com/apache/incubator-seata-go/pull/307)] add flush undo log +- [[#329](https://github.com/apache/incubator-seata-go/pull/329)] add zip compressor +- [[#325](https://github.com/apache/incubator-seata-go/pull/325)] add MySQL multi update SQL undo log builder +- [[#330](https://github.com/apache/incubator-seata-go/pull/330)] add MySQL multi delete SQL undo log builder +- [[#319](https://github.com/apache/incubator-seata-go/pull/319)] add select for update +- [[#320](https://github.com/apache/incubator-seata-go/pull/320)] add undo logic +- [[#337](https://github.com/apache/incubator-seata-go/pull/337)] add insert undo log +- [[#355](https://github.com/apache/incubator-seata-go/pull/355)] support judging the number of undo log storage fields according to the configuration +- [[#365](https://github.com/apache/incubator-seata-go/pull/365)] do dirty data check before rolling back AT ### bugfix: -- [[#176](https://github.com/seata/seata-go/pull/176)] fix unit test bug of message -- [[#237](https://github.com/seata/seata-go/pull/237)] fix the bug of registering resources when executing the OpenConnector function -- [[#230](https://github.com/seata/seata-go/pull/230)] fix the bug of remote asynchronous call infinite loop -- [[#258](https://github.com/seata/seata-go/pull/258)] fix global transation time out bug -- [[#263](https://github.com/seata/seata-go/pull/263)] fix mock bug -- [[#326](https://github.com/seata/seata-go/pull/326)] fix fanout test data race -- [[#350](https://github.com/seata/seata-go/pull/350)] fix panic bug -- [[#359](https://github.com/seata/seata-go/pull/359)] fix insert undo log bug -- [[#368](https://github.com/seata/seata-go/pull/368)] fix AT rollback sample bug -- [[#363](https://github.com/seata/seata-go/pull/363)] fix meta data bug -- [[#365](https://github.com/seata/seata-go/pull/365)] fix decode undo log bug +- [[#176](https://github.com/apache/incubator-seata-go/pull/176)] fix unit test bug of message +- [[#237](https://github.com/apache/incubator-seata-go/pull/237)] fix the bug of registering resources when executing the OpenConnector function +- [[#230](https://github.com/apache/incubator-seata-go/pull/230)] fix the bug of remote asynchronous call infinite loop +- [[#258](https://github.com/apache/incubator-seata-go/pull/258)] fix global transation time out bug +- [[#263](https://github.com/apache/incubator-seata-go/pull/263)] fix mock bug +- [[#326](https://github.com/apache/incubator-seata-go/pull/326)] fix fanout test data race +- [[#350](https://github.com/apache/incubator-seata-go/pull/350)] fix panic bug +- [[#359](https://github.com/apache/incubator-seata-go/pull/359)] fix insert undo log bug +- [[#368](https://github.com/apache/incubator-seata-go/pull/368)] fix AT rollback sample bug +- [[#363](https://github.com/apache/incubator-seata-go/pull/363)] fix meta data bug +- [[#365](https://github.com/apache/incubator-seata-go/pull/365)] fix decode undo log bug ### optimize: -- [[#187](https://github.com/seata/seata-go/pull/187)] optimize way of init seata-go -- [[#196](https://github.com/seata/seata-go/pull/196)] optimize remoting method's params -- [[#200](https://github.com/seata/seata-go/pull/200)] add TCC grpc sample and optimize register resource and branch register -- [[#208](https://github.com/seata/seata-go/pull/208)] optimize remove unnecessary codes -- [[#202](https://github.com/seata/seata-go/pull/202)] optimize workflow, add condecov and issue, stale robot -- [[#215](https://github.com/seata/seata-go/pull/215)] optimize the time parameter to improve readability -- [[#179](https://github.com/seata/seata-go/pull/179)] support instance BusinessActionContext outside the TCC try method -- [[#198](https://github.com/seata/seata-go/pull/198)] optimize function's parameters into one struct-rm_api.go -- [[#235](https://github.com/seata/seata-go/pull/235)] adjust MessageType enumeration value naming convention -- [[#238](https://github.com/seata/seata-go/pull/238)] add some todo comment, add a undo hook sample -- [[#229](https://github.com/seata/seata-go/pull/229)] add unit testing for common -- [[#261](https://github.com/seata/seata-go/pull/261)] optimize nested loop retries -- [[#284](https://github.com/seata/seata-go/pull/284)] optimize retry logic -- [[#286](https://github.com/seata/seata-go/pull/286)] separate the initialization logic of tm and rm -- [[#287](https://github.com/seata/seata-go/pull/287)] fefactor seata conn logic -- [[#281](https://github.com/seata/seata-go/pull/281)] optimize global transaction usage -- [[#295](https://github.com/seata/seata-go/pull/295)] fefactor seata conn logic -- [[#302](https://github.com/seata/seata-go/pull/302)] update dubbo-go version -- [[#336](https://github.com/seata/seata-go/pull/336)] optimize at overall process -- [[#346](https://github.com/seata/seata-go/pull/346)] optimize AT commit transaction process -- [[#352](https://github.com/seata/seata-go/pull/352)] optimize get meta data -- [[#354](https://github.com/seata/seata-go/pull/354)] optimize AT commit transaction process -- [[#353](https://github.com/seata/seata-go/pull/353)] modify some receiver name -- [[#356](https://github.com/seata/seata-go/pull/356)] optimize AT rollback transaction process +- [[#187](https://github.com/apache/incubator-seata-go/pull/187)] optimize way of init seata-go +- [[#196](https://github.com/apache/incubator-seata-go/pull/196)] optimize remoting method's params +- [[#200](https://github.com/apache/incubator-seata-go/pull/200)] add TCC grpc sample and optimize register resource and branch register +- [[#208](https://github.com/apache/incubator-seata-go/pull/208)] optimize remove unnecessary codes +- [[#202](https://github.com/apache/incubator-seata-go/pull/202)] optimize workflow, add condecov and issue, stale robot +- [[#215](https://github.com/apache/incubator-seata-go/pull/215)] optimize the time parameter to improve readability +- [[#179](https://github.com/apache/incubator-seata-go/pull/179)] support instance BusinessActionContext outside the TCC try method +- [[#198](https://github.com/apache/incubator-seata-go/pull/198)] optimize function's parameters into one struct-rm_api.go +- [[#235](https://github.com/apache/incubator-seata-go/pull/235)] adjust MessageType enumeration value naming convention +- [[#238](https://github.com/apache/incubator-seata-go/pull/238)] add some todo comment, add a undo hook sample +- [[#229](https://github.com/apache/incubator-seata-go/pull/229)] add unit testing for common +- [[#261](https://github.com/apache/incubator-seata-go/pull/261)] optimize nested loop retries +- [[#284](https://github.com/apache/incubator-seata-go/pull/284)] optimize retry logic +- [[#286](https://github.com/apache/incubator-seata-go/pull/286)] separate the initialization logic of tm and rm +- [[#287](https://github.com/apache/incubator-seata-go/pull/287)] fefactor seata conn logic +- [[#281](https://github.com/apache/incubator-seata-go/pull/281)] optimize global transaction usage +- [[#295](https://github.com/apache/incubator-seata-go/pull/295)] fefactor seata conn logic +- [[#302](https://github.com/apache/incubator-seata-go/pull/302)] update dubbo-go version +- [[#336](https://github.com/apache/incubator-seata-go/pull/336)] optimize at overall process +- [[#346](https://github.com/apache/incubator-seata-go/pull/346)] optimize AT commit transaction process +- [[#352](https://github.com/apache/incubator-seata-go/pull/352)] optimize get meta data +- [[#354](https://github.com/apache/incubator-seata-go/pull/354)] optimize AT commit transaction process +- [[#353](https://github.com/apache/incubator-seata-go/pull/353)] modify some receiver name +- [[#356](https://github.com/apache/incubator-seata-go/pull/356)] optimize AT rollback transaction process ### test: -- [[#154](https://github.com/seata/seata-go/pull/154)] add unit test for message -- [[#163](https://github.com/seata/seata-go/pull/163)] add unit test for tm -- [[#203](https://github.com/seata/seata-go/pull/203)] add unit test for getty -- [[#204](https://github.com/seata/seata-go/pull/204)] add unit test for dubbo transtation filter -- [[#210](https://github.com/seata/seata-go/pull/210)] add unit test for Tcc branch report -- [[#192](https://github.com/seata/seata-go/pull/192)] add unit test for rm -- [[#229](https://github.com/seata/seata-go/pull/229)] add unit test for common -- [[#299](https://github.com/seata/seata-go/pull/299)] add unit test for SQL Parser -- [[#332](https://github.com/seata/seata-go/pull/332)] add unit test for multi delete undo log -- [[#358](https://github.com/seata/seata-go/pull/358)] add AT rollback sample +- [[#154](https://github.com/apache/incubator-seata-go/pull/154)] add unit test for message +- [[#163](https://github.com/apache/incubator-seata-go/pull/163)] add unit test for tm +- [[#203](https://github.com/apache/incubator-seata-go/pull/203)] add unit test for getty +- [[#204](https://github.com/apache/incubator-seata-go/pull/204)] add unit test for dubbo transtation filter +- [[#210](https://github.com/apache/incubator-seata-go/pull/210)] add unit test for Tcc branch report +- [[#192](https://github.com/apache/incubator-seata-go/pull/192)] add unit test for rm +- [[#229](https://github.com/apache/incubator-seata-go/pull/229)] add unit test for common +- [[#299](https://github.com/apache/incubator-seata-go/pull/299)] add unit test for SQL Parser +- [[#332](https://github.com/apache/incubator-seata-go/pull/332)] add unit test for multi delete undo log +- [[#358](https://github.com/apache/incubator-seata-go/pull/358)] add AT rollback sample ### doc: -- [[#202](https://github.com/seata/seata-go/pull/202)] optimize workflow, add condecov and issue -- [[#254](https://github.com/seata/seata-go/pull/254)] add license automatic check script -- [[#305](https://github.com/seata/seata-go/pull/305)] config github action not to automatically close pr or issue +- [[#202](https://github.com/apache/incubator-seata-go/pull/202)] optimize workflow, add condecov and issue +- [[#254](https://github.com/apache/incubator-seata-go/pull/254)] add license automatic check script +- [[#305](https://github.com/apache/incubator-seata-go/pull/305)] config github action not to automatically close pr or issue ### contributors: @@ -136,18 +136,18 @@ Thanks to these contributors for their code commits. Please report an unintended - [liiibpm](https://github.com/liiibpm) - [elrond-g](https://github.com/elrond-g) - [wang1309](https://github.com/wang1309) -- [iSuperCoder](https://github.com/seata/seata-go/commits?author=iSuperCoder) -- [a631807682](https://github.com/seata/seata-go/commits?author=a631807682) -- [betterwinsone](https://github.com/seata/seata-go/commits?author=betterwinsone) -- [jasondeng1997](https://github.com/seata/seata-go/commits?author=jasondeng1997) -- [chuntaojun](https://github.com/seata/seata-go/commits?author=chuntaojun) -- [complone](https://github.com/seata/seata-go/commits?author=complone) -- [miaoxueyu](https://github.com/seata/seata-go/commits?author=miaoxueyu) -- [PangXing](https://github.com/seata/seata-go/commits?author=PangXing) -- [georgehao](https://github.com/seata/seata-go/commits?author=georgehao) -- [baerwang](https://github.com/seata/seata-go/commits?author=baerwang) -- [raspberry-hu](https://github.com/seata/seata-go/commits?author=raspberry-hu) -- [WyattJia](https://github.com/seata/seata-go/commits?author=WyattJia) +- [iSuperCoder](https://github.com/apache/incubator-seata-go/commits?author=iSuperCoder) +- [a631807682](https://github.com/apache/incubator-seata-go/commits?author=a631807682) +- [betterwinsone](https://github.com/apache/incubator-seata-go/commits?author=betterwinsone) +- [jasondeng1997](https://github.com/apache/incubator-seata-go/commits?author=jasondeng1997) +- [chuntaojun](https://github.com/apache/incubator-seata-go/commits?author=chuntaojun) +- [complone](https://github.com/apache/incubator-seata-go/commits?author=complone) +- [miaoxueyu](https://github.com/apache/incubator-seata-go/commits?author=miaoxueyu) +- [PangXing](https://github.com/apache/incubator-seata-go/commits?author=PangXing) +- [georgehao](https://github.com/apache/incubator-seata-go/commits?author=georgehao) +- [baerwang](https://github.com/apache/incubator-seata-go/commits?author=baerwang) +- [raspberry-hu](https://github.com/apache/incubator-seata-go/commits?author=raspberry-hu) +- [WyattJia](https://github.com/apache/incubator-seata-go/commits?author=WyattJia) - [Code-Fight](https://github.com/Code-Fight) - [betterwinsone](https://github.com/betterwinsonet) diff --git a/changes/1.0.2-RC1_zh.md b/changes/1.0.2-RC1_zh.md index db39c143..9d58d86b 100644 --- a/changes/1.0.2-RC1_zh.md +++ b/changes/1.0.2-RC1_zh.md @@ -30,97 +30,97 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 ### feature: -- [[#190](https://github.com/seata/seata-go/pull/190)] 添加分支状态上报接口 -- [[#158](https://github.com/seata/seata-go/pull/158)] TCC 模式支持 grapc 调用 -- [[#213](https://github.com/seata/seata-go/pull/213)] 支持数据源代理功能 -- [[#240](https://github.com/seata/seata-go/pull/240)] 删除日志管理功能 -- [[#243](https://github.com/seata/seata-go/pull/243)] 添加 Update SQL 语法解析器 -- [[#191](https://github.com/seata/seata-go/pull/191)] 支持 TCC 防悬挂、空回滚处理功能 -- [[#264](https://github.com/seata/seata-go/pull/264)] 添加更新sql解析器并删除 tidb 解析器 -- [[#280](https://github.com/seata/seata-go/pull/280)] TCC 支持 http 调用 -- [[#245](https://github.com/seata/seata-go/pull/245)] 支持 hasLogTable 判断逻辑 -- [[#288](https://github.com/seata/seata-go/pull/288)] 添加 update SQL 的 undo log 生成功能 -- [[#296](https://github.com/seata/seata-go/pull/296)] 添加 delete SQL 的 undo log 生成功能 -- [[#303](https://github.com/seata/seata-go/pull/303)] 添加异步处理器 -- [[#289](https://github.com/seata/seata-go/pull/289)] 撤消日志生成器后添加 MySQL 更新 -- [[#294](https://github.com/seata/seata-go/pull/294)] 添加 MySQL 元数据查询 -- [[#309](https://github.com/seata/seata-go/pull/309)] 初始化压缩类型 -- [[#301](https://github.com/seata/seata-go/pull/301)] 添加 Multi SQL 的 undo log 生成功能 -- [[#321](https://github.com/seata/seata-go/pull/321)] 添加 deflate 压缩功能 -- [[#324](https://github.com/seata/seata-go/pull/324)] 添加 lz4 压缩功能 -- [[#327](https://github.com/seata/seata-go/pull/327)] 添加 zstd 压缩功能 -- [[#322](https://github.com/seata/seata-go/pull/322)] 添加 gzip 压缩功能 -- [[#307](https://github.com/seata/seata-go/pull/307)] 添加 flush undo log 功能 -- [[#329](https://github.com/seata/seata-go/pull/329)] 添加 zip 压缩功能 -- [[#325](https://github.com/seata/seata-go/pull/325)] 添加 Multi update SQL 的 undo log 生成功能 -- [[#330](https://github.com/seata/seata-go/pull/330)] 添加 Multi delete SQL 的 undo log 生成功能 -- [[#319](https://github.com/seata/seata-go/pull/319)] 添加选择更新执行器 -- [[#320](https://github.com/seata/seata-go/pull/320)] 添加 undo 逻辑 -- [[#337](https://github.com/seata/seata-go/pull/337)] 添加插入 undo log 逻辑 -- [[#355](https://github.com/seata/seata-go/pull/355)] 支持根据配置判断 undo log 保存字段个数 -- [[#365](https://github.com/seata/seata-go/pull/365)] 回滚 AT 之前做脏数据校验 +- [[#190](https://github.com/apache/incubator-seata-go/pull/190)] 添加分支状态上报接口 +- [[#158](https://github.com/apache/incubator-seata-go/pull/158)] TCC 模式支持 grapc 调用 +- [[#213](https://github.com/apache/incubator-seata-go/pull/213)] 支持数据源代理功能 +- [[#240](https://github.com/apache/incubator-seata-go/pull/240)] 删除日志管理功能 +- [[#243](https://github.com/apache/incubator-seata-go/pull/243)] 添加 Update SQL 语法解析器 +- [[#191](https://github.com/apache/incubator-seata-go/pull/191)] 支持 TCC 防悬挂、空回滚处理功能 +- [[#264](https://github.com/apache/incubator-seata-go/pull/264)] 添加更新sql解析器并删除 tidb 解析器 +- [[#280](https://github.com/apache/incubator-seata-go/pull/280)] TCC 支持 http 调用 +- [[#245](https://github.com/apache/incubator-seata-go/pull/245)] 支持 hasLogTable 判断逻辑 +- [[#288](https://github.com/apache/incubator-seata-go/pull/288)] 添加 update SQL 的 undo log 生成功能 +- [[#296](https://github.com/apache/incubator-seata-go/pull/296)] 添加 delete SQL 的 undo log 生成功能 +- [[#303](https://github.com/apache/incubator-seata-go/pull/303)] 添加异步处理器 +- [[#289](https://github.com/apache/incubator-seata-go/pull/289)] 撤消日志生成器后添加 MySQL 更新 +- [[#294](https://github.com/apache/incubator-seata-go/pull/294)] 添加 MySQL 元数据查询 +- [[#309](https://github.com/apache/incubator-seata-go/pull/309)] 初始化压缩类型 +- [[#301](https://github.com/apache/incubator-seata-go/pull/301)] 添加 Multi SQL 的 undo log 生成功能 +- [[#321](https://github.com/apache/incubator-seata-go/pull/321)] 添加 deflate 压缩功能 +- [[#324](https://github.com/apache/incubator-seata-go/pull/324)] 添加 lz4 压缩功能 +- [[#327](https://github.com/apache/incubator-seata-go/pull/327)] 添加 zstd 压缩功能 +- [[#322](https://github.com/apache/incubator-seata-go/pull/322)] 添加 gzip 压缩功能 +- [[#307](https://github.com/apache/incubator-seata-go/pull/307)] 添加 flush undo log 功能 +- [[#329](https://github.com/apache/incubator-seata-go/pull/329)] 添加 zip 压缩功能 +- [[#325](https://github.com/apache/incubator-seata-go/pull/325)] 添加 Multi update SQL 的 undo log 生成功能 +- [[#330](https://github.com/apache/incubator-seata-go/pull/330)] 添加 Multi delete SQL 的 undo log 生成功能 +- [[#319](https://github.com/apache/incubator-seata-go/pull/319)] 添加选择更新执行器 +- [[#320](https://github.com/apache/incubator-seata-go/pull/320)] 添加 undo 逻辑 +- [[#337](https://github.com/apache/incubator-seata-go/pull/337)] 添加插入 undo log 逻辑 +- [[#355](https://github.com/apache/incubator-seata-go/pull/355)] 支持根据配置判断 undo log 保存字段个数 +- [[#365](https://github.com/apache/incubator-seata-go/pull/365)] 回滚 AT 之前做脏数据校验 ### bugfix: -- [[#176](https://github.com/seata/seata-go/pull/176)] 修复 message 的单测的 bug -- [[#237](https://github.com/seata/seata-go/pull/237)] 修复在执行 OpenConnector 函数时候注册资源的 bug -- [[#230](https://github.com/seata/seata-go/pull/230)] 修复远程异步调用无限循环的bug -- [[#258](https://github.com/seata/seata-go/pull/258)] 修复全局事务超时的 bug -- [[#263](https://github.com/seata/seata-go/pull/263)] 修复 mock 数据的 bug -- [[#326](https://github.com/seata/seata-go/pull/326)] 修复 fanout 单元测试 bug -- [[#350](https://github.com/seata/seata-go/pull/350)] 修复 panic 的bug -- [[#359](https://github.com/seata/seata-go/pull/359)] 修复插入 undo log 的 MySQL 参数 bug -- [[#360](https://github.com/seata/seata-go/pull/360)] 修复 AT 回滚例子 bug -- [[#363](https://github.com/seata/seata-go/pull/363)] 修复 meta data bug -- [[#365](https://github.com/seata/seata-go/pull/365)] 修复反序列化 undo log bug +- [[#176](https://github.com/apache/incubator-seata-go/pull/176)] 修复 message 的单测的 bug +- [[#237](https://github.com/apache/incubator-seata-go/pull/237)] 修复在执行 OpenConnector 函数时候注册资源的 bug +- [[#230](https://github.com/apache/incubator-seata-go/pull/230)] 修复远程异步调用无限循环的bug +- [[#258](https://github.com/apache/incubator-seata-go/pull/258)] 修复全局事务超时的 bug +- [[#263](https://github.com/apache/incubator-seata-go/pull/263)] 修复 mock 数据的 bug +- [[#326](https://github.com/apache/incubator-seata-go/pull/326)] 修复 fanout 单元测试 bug +- [[#350](https://github.com/apache/incubator-seata-go/pull/350)] 修复 panic 的bug +- [[#359](https://github.com/apache/incubator-seata-go/pull/359)] 修复插入 undo log 的 MySQL 参数 bug +- [[#360](https://github.com/apache/incubator-seata-go/pull/360)] 修复 AT 回滚例子 bug +- [[#363](https://github.com/apache/incubator-seata-go/pull/363)] 修复 meta data bug +- [[#365](https://github.com/apache/incubator-seata-go/pull/365)] 修复反序列化 undo log bug ### optimize: -- [[#187](https://github.com/seata/seata-go/pull/187)] 优化 seata-go 初始化流程 -- [[#196](https://github.com/seata/seata-go/pull/196)] 优化远程调用方法参数 -- [[#200](https://github.com/seata/seata-go/pull/200)] 添加 tcc grpc 样例,优化注册资源和分支注册 -- [[#208](https://github.com/seata/seata-go/pull/208)] 优化删除不必要代码 -- [[#215](https://github.com/seata/seata-go/pull/215)] 优化使时间参数,提高可读性 -- [[#179](https://github.com/seata/seata-go/pull/179)] 支持 TCC 一阶段传入用户自定义参数 -- [[#198](https://github.com/seata/seata-go/pull/198)] 优化远程调用方法的传参 -- [[#235](https://github.com/seata/seata-go/pull/235)] 调整 MessageType 枚举值命名规范 -- [[#238](https://github.com/seata/seata-go/pull/238)] 添加一些待办事项注释,添加 hook 例子 -- [[#261](https://github.com/seata/seata-go/pull/261)] 优化嵌套循环重试 -- [[#284](https://github.com/seata/seata-go/pull/284)] 优化重试逻辑 -- [[#286](https://github.com/seata/seata-go/pull/286)] 将 rm 和 tm 的初始化逻辑拆分 -- [[#287](https://github.com/seata/seata-go/pull/287)] 重构 seata conn 逻辑 -- [[#281](https://github.com/seata/seata-go/pull/281)] 优化全局事务使用 -- [[#295](https://github.com/seata/seata-go/pull/295)] 重构 seata conn 逻辑 -- [[#302](https://github.com/seata/seata-go/pull/302)] 修改 dubbo-go 版本 -- [[#336](https://github.com/seata/seata-go/pull/336)] 优化 at 整体流程 -- [[#346](https://github.com/seata/seata-go/pull/346)] 优化 at 事务提交流程 -- [[#352](https://github.com/seata/seata-go/pull/352)] 优化获取元数据流程 -- [[#354](https://github.com/seata/seata-go/pull/354)] 优化 at 事务提交流程 -- [[#353](https://github.com/seata/seata-go/pull/353)] 修改方法接收者命名规范 -- [[#356](https://github.com/seata/seata-go/pull/356)] 优化 at 事务回滚流程 +- [[#187](https://github.com/apache/incubator-seata-go/pull/187)] 优化 seata-go 初始化流程 +- [[#196](https://github.com/apache/incubator-seata-go/pull/196)] 优化远程调用方法参数 +- [[#200](https://github.com/apache/incubator-seata-go/pull/200)] 添加 tcc grpc 样例,优化注册资源和分支注册 +- [[#208](https://github.com/apache/incubator-seata-go/pull/208)] 优化删除不必要代码 +- [[#215](https://github.com/apache/incubator-seata-go/pull/215)] 优化使时间参数,提高可读性 +- [[#179](https://github.com/apache/incubator-seata-go/pull/179)] 支持 TCC 一阶段传入用户自定义参数 +- [[#198](https://github.com/apache/incubator-seata-go/pull/198)] 优化远程调用方法的传参 +- [[#235](https://github.com/apache/incubator-seata-go/pull/235)] 调整 MessageType 枚举值命名规范 +- [[#238](https://github.com/apache/incubator-seata-go/pull/238)] 添加一些待办事项注释,添加 hook 例子 +- [[#261](https://github.com/apache/incubator-seata-go/pull/261)] 优化嵌套循环重试 +- [[#284](https://github.com/apache/incubator-seata-go/pull/284)] 优化重试逻辑 +- [[#286](https://github.com/apache/incubator-seata-go/pull/286)] 将 rm 和 tm 的初始化逻辑拆分 +- [[#287](https://github.com/apache/incubator-seata-go/pull/287)] 重构 seata conn 逻辑 +- [[#281](https://github.com/apache/incubator-seata-go/pull/281)] 优化全局事务使用 +- [[#295](https://github.com/apache/incubator-seata-go/pull/295)] 重构 seata conn 逻辑 +- [[#302](https://github.com/apache/incubator-seata-go/pull/302)] 修改 dubbo-go 版本 +- [[#336](https://github.com/apache/incubator-seata-go/pull/336)] 优化 at 整体流程 +- [[#346](https://github.com/apache/incubator-seata-go/pull/346)] 优化 at 事务提交流程 +- [[#352](https://github.com/apache/incubator-seata-go/pull/352)] 优化获取元数据流程 +- [[#354](https://github.com/apache/incubator-seata-go/pull/354)] 优化 at 事务提交流程 +- [[#353](https://github.com/apache/incubator-seata-go/pull/353)] 修改方法接收者命名规范 +- [[#356](https://github.com/apache/incubator-seata-go/pull/356)] 优化 at 事务回滚流程 ### test: -- [[#154](https://github.com/seata/seata-go/pull/154)] 添加 message 单元单测 -- [[#163](https://github.com/seata/seata-go/pull/163)] 添加 tm 单元单测 -- [[#203](https://github.com/seata/seata-go/pull/203)] 添加 getty 单元测试 -- [[#204](https://github.com/seata/seata-go/pull/204)] 添加 dubbo filter 单元测试 -- [[#210](https://github.com/seata/seata-go/pull/210)] 添加 Tcc 分支报告测试 -- [[#192](https://github.com/seata/seata-go/pull/192)] 添加 rm 单元测试 -- [[#229](https://github.com/seata/seata-go/pull/229)] 添加 common 单元测试 -- [[#299](https://github.com/seata/seata-go/pull/299)] 添加 SQL Parser 单元测试 -- [[#332](https://github.com/seata/seata-go/pull/332)] 添加 multi delete undo log 单元测试 -- [[#358](https://github.com/seata/seata-go/pull/358)] 添加 AT 回滚的例子 +- [[#154](https://github.com/apache/incubator-seata-go/pull/154)] 添加 message 单元单测 +- [[#163](https://github.com/apache/incubator-seata-go/pull/163)] 添加 tm 单元单测 +- [[#203](https://github.com/apache/incubator-seata-go/pull/203)] 添加 getty 单元测试 +- [[#204](https://github.com/apache/incubator-seata-go/pull/204)] 添加 dubbo filter 单元测试 +- [[#210](https://github.com/apache/incubator-seata-go/pull/210)] 添加 Tcc 分支报告测试 +- [[#192](https://github.com/apache/incubator-seata-go/pull/192)] 添加 rm 单元测试 +- [[#229](https://github.com/apache/incubator-seata-go/pull/229)] 添加 common 单元测试 +- [[#299](https://github.com/apache/incubator-seata-go/pull/299)] 添加 SQL Parser 单元测试 +- [[#332](https://github.com/apache/incubator-seata-go/pull/332)] 添加 multi delete undo log 单元测试 +- [[#358](https://github.com/apache/incubator-seata-go/pull/358)] 添加 AT 回滚的例子 ### doc: -- [[#202](https://github.com/seata/seata-go/pull/202)] 优化 github CI 流程,添加 condecov 、 issue CI 工作流 -- [[#254](https://github.com/seata/seata-go/pull/254)] 添加自动检查 licence 的脚本 -- [[#305](https://github.com/seata/seata-go/pull/305)] 修改 CI 不要自动关闭 issue 和 pr +- [[#202](https://github.com/apache/incubator-seata-go/pull/202)] 优化 github CI 流程,添加 condecov 、 issue CI 工作流 +- [[#254](https://github.com/apache/incubator-seata-go/pull/254)] 添加自动检查 licence 的脚本 +- [[#305](https://github.com/apache/incubator-seata-go/pull/305)] 修改 CI 不要自动关闭 issue 和 pr @@ -135,18 +135,18 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 - [liiibpm](https://github.com/liiibpm) - [elrond-g](https://github.com/elrond-g) - [wang1309](https://github.com/wang1309) -- [iSuperCoder](https://github.com/seata/seata-go/commits?author=iSuperCoder) -- [a631807682](https://github.com/seata/seata-go/commits?author=a631807682) -- [betterwinsone](https://github.com/seata/seata-go/commits?author=betterwinsone) -- [jasondeng1997](https://github.com/seata/seata-go/commits?author=jasondeng1997) -- [chuntaojun](https://github.com/seata/seata-go/commits?author=chuntaojun) -- [complone](https://github.com/seata/seata-go/commits?author=complone) -- [miaoxueyu](https://github.com/seata/seata-go/commits?author=miaoxueyu) -- [PangXing](https://github.com/seata/seata-go/commits?author=PangXing) -- [georgehao](https://github.com/seata/seata-go/commits?author=georgehao) -- [baerwang](https://github.com/seata/seata-go/commits?author=baerwang) -- [raspberry-hu](https://github.com/seata/seata-go/commits?author=raspberry-hu) -- [WyattJia](https://github.com/seata/seata-go/commits?author=WyattJia) +- [iSuperCoder](https://github.com/apache/incubator-seata-go/commits?author=iSuperCoder) +- [a631807682](https://github.com/apache/incubator-seata-go/commits?author=a631807682) +- [betterwinsone](https://github.com/apache/incubator-seata-go/commits?author=betterwinsone) +- [jasondeng1997](https://github.com/apache/incubator-seata-go/commits?author=jasondeng1997) +- [chuntaojun](https://github.com/apache/incubator-seata-go/commits?author=chuntaojun) +- [complone](https://github.com/apache/incubator-seata-go/commits?author=complone) +- [miaoxueyu](https://github.com/apache/incubator-seata-go/commits?author=miaoxueyu) +- [PangXing](https://github.com/apache/incubator-seata-go/commits?author=PangXing) +- [georgehao](https://github.com/apache/incubator-seata-go/commits?author=georgehao) +- [baerwang](https://github.com/apache/incubator-seata-go/commits?author=baerwang) +- [raspberry-hu](https://github.com/apache/incubator-seata-go/commits?author=raspberry-hu) +- [WyattJia](https://github.com/apache/incubator-seata-go/commits?author=WyattJia) - [Code-Fight](https://github.com/Code-Fight) - [betterwinsone](https://github.com/betterwinsonet) diff --git a/changes/1.0.3.md b/changes/1.0.3.md index 2b084ec8..9952cdf7 100644 --- a/changes/1.0.3.md +++ b/changes/1.0.3.md @@ -30,48 +30,48 @@ ### feature: -- [[#380](https://github.com/seata/seata-go/pull/380)] support xa mysql connection -- [[#383](https://github.com/seata/seata-go/pull/383)] support read tcc fence configuration file -- [[#389](https://github.com/seata/seata-go/pull/389)] add the transaction id of xa mode -- [[#398](https://github.com/seata/seata-go/pull/398)] support read TM configuration file -- [[#399](https://github.com/seata/seata-go/pull/399)] support read getty configuration file -- [[#405](https://github.com/seata/seata-go/pull/405)] support at mode insert on duplicate sql parsing -- [[#406](https://github.com/seata/seata-go/pull/406)] support read transport configuration file -- [[#410](https://github.com/seata/seata-go/pull/410)] support read undo log configuration file -- [[#411](https://github.com/seata/seata-go/pull/411)] use tm's profile properties in the project -- [[#412](https://github.com/seata/seata-go/pull/412)] support read rm configuration file -- [[#412](https://github.com/seata/seata-go/pull/412)] support read service configuration file -- [[#419](https://github.com/seata/seata-go/pull/419)] use undo-log's profile properties in the project +- [[#380](https://github.com/apache/incubator-seata-go/pull/380)] support xa mysql connection +- [[#383](https://github.com/apache/incubator-seata-go/pull/383)] support read tcc fence configuration file +- [[#389](https://github.com/apache/incubator-seata-go/pull/389)] add the transaction id of xa mode +- [[#398](https://github.com/apache/incubator-seata-go/pull/398)] support read TM configuration file +- [[#399](https://github.com/apache/incubator-seata-go/pull/399)] support read getty configuration file +- [[#405](https://github.com/apache/incubator-seata-go/pull/405)] support at mode insert on duplicate sql parsing +- [[#406](https://github.com/apache/incubator-seata-go/pull/406)] support read transport configuration file +- [[#410](https://github.com/apache/incubator-seata-go/pull/410)] support read undo log configuration file +- [[#411](https://github.com/apache/incubator-seata-go/pull/411)] use tm's profile properties in the project +- [[#412](https://github.com/apache/incubator-seata-go/pull/412)] support read rm configuration file +- [[#412](https://github.com/apache/incubator-seata-go/pull/412)] support read service configuration file +- [[#419](https://github.com/apache/incubator-seata-go/pull/419)] use undo-log's profile properties in the project ### bugfix: -- [[#387](https://github.com/seata/seata-go/pull/387)] fix loop recursion problem in OpenConnector -- [[#401](https://github.com/seata/seata-go/pull/401)] fix branch register process -- [[#418](https://github.com/seata/seata-go/pull/418)] fix the configuration file problem of undo log -- [[#423](https://github.com/seata/seata-go/pull/423)] fix getty initialization failure -- [[#424](https://github.com/seata/seata-go/pull/424)] fix getty initialization failure -- [[#429](https://github.com/seata/seata-go/pull/429)] fix the problem of execution failure in at mode +- [[#387](https://github.com/apache/incubator-seata-go/pull/387)] fix loop recursion problem in OpenConnector +- [[#401](https://github.com/apache/incubator-seata-go/pull/401)] fix branch register process +- [[#418](https://github.com/apache/incubator-seata-go/pull/418)] fix the configuration file problem of undo log +- [[#423](https://github.com/apache/incubator-seata-go/pull/423)] fix getty initialization failure +- [[#424](https://github.com/apache/incubator-seata-go/pull/424)] fix getty initialization failure +- [[#429](https://github.com/apache/incubator-seata-go/pull/429)] fix the problem of execution failure in at mode ### optimize: -- [[#366](https://github.com/seata/seata-go/pull/366)] add data check before rollbeck -- [[#367](https://github.com/seata/seata-go/pull/367)] simplify to make codes more readable -- [[#369](https://github.com/seata/seata-go/pull/369)] remove unless function -- [[#385](https://github.com/seata/seata-go/pull/385)] optimize the SQL used in AT sample -- [[#388](https://github.com/seata/seata-go/pull/388)] optimize comments and dead code -- [[#390](https://github.com/seata/seata-go/pull/390)] optime rm init -- [[#392](https://github.com/seata/seata-go/pull/392)] optimize code style -- [[#394](https://github.com/seata/seata-go/pull/394)] optimize at mode base executor -- [[#400](https://github.com/seata/seata-go/pull/400)] optime protocol init -- [[#408](https://github.com/seata/seata-go/pull/408)] optime log init -- [[#409](https://github.com/seata/seata-go/pull/409)] refactor logic of delete and insert sql in at mode -- [[#414](https://github.com/seata/seata-go/pull/414)] rename unit test file -- [[#422](https://github.com/seata/seata-go/pull/422)] remove unused config code +- [[#366](https://github.com/apache/incubator-seata-go/pull/366)] add data check before rollbeck +- [[#367](https://github.com/apache/incubator-seata-go/pull/367)] simplify to make codes more readable +- [[#369](https://github.com/apache/incubator-seata-go/pull/369)] remove unless function +- [[#385](https://github.com/apache/incubator-seata-go/pull/385)] optimize the SQL used in AT sample +- [[#388](https://github.com/apache/incubator-seata-go/pull/388)] optimize comments and dead code +- [[#390](https://github.com/apache/incubator-seata-go/pull/390)] optime rm init +- [[#392](https://github.com/apache/incubator-seata-go/pull/392)] optimize code style +- [[#394](https://github.com/apache/incubator-seata-go/pull/394)] optimize at mode base executor +- [[#400](https://github.com/apache/incubator-seata-go/pull/400)] optime protocol init +- [[#408](https://github.com/apache/incubator-seata-go/pull/408)] optime log init +- [[#409](https://github.com/apache/incubator-seata-go/pull/409)] refactor logic of delete and insert sql in at mode +- [[#414](https://github.com/apache/incubator-seata-go/pull/414)] rename unit test file +- [[#422](https://github.com/apache/incubator-seata-go/pull/422)] remove unused config code ### test: ### doc: -- [[#417](https://github.com/seata/seata-go/pull/417)] optiomize readme file +- [[#417](https://github.com/apache/incubator-seata-go/pull/417)] optiomize readme file ### contributors: diff --git a/changes/1.0.3_zh.md b/changes/1.0.3_zh.md index 55a69d60..01bfd379 100644 --- a/changes/1.0.3_zh.md +++ b/changes/1.0.3_zh.md @@ -30,49 +30,49 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 ### feature: -- [[#380](https://github.com/seata/seata-go/pull/380)] 支持 MySQL XA 的连接 -- [[#383](https://github.com/seata/seata-go/pull/383)] 支持 TCC Fence 读取配置文件 -- [[#389](https://github.com/seata/seata-go/pull/389)] 添加 XA 模式的事务ID -- [[#398](https://github.com/seata/seata-go/pull/398)] 支持 TM 读取配置文件 -- [[#399](https://github.com/seata/seata-go/pull/399)] 支持 getty 读取配置文件 -- [[#405](https://github.com/seata/seata-go/pull/405)] 支持 AT 模式 insert on duplicate SQL 解析 -- [[#406](https://github.com/seata/seata-go/pull/406)] 支持 transport 读取配置文件 -- [[#410](https://github.com/seata/seata-go/pull/410)] 支持 undo log 读取配置文件 -- [[#411](https://github.com/seata/seata-go/pull/411)] 在项目中使用 tm 的配置文件属性 -- [[#412](https://github.com/seata/seata-go/pull/412)] 支持 RM 读取配置文件 -- [[#413](https://github.com/seata/seata-go/pull/413)] 支持 service 读取配置文件 -- [[#419](https://github.com/seata/seata-go/pull/419)] 在项目中使用 undo log 的配置文件属性 -- [[#421](https://github.com/seata/seata-go/pull/421)] 支持 service 读取配置文件 +- [[#380](https://github.com/apache/incubator-seata-go/pull/380)] 支持 MySQL XA 的连接 +- [[#383](https://github.com/apache/incubator-seata-go/pull/383)] 支持 TCC Fence 读取配置文件 +- [[#389](https://github.com/apache/incubator-seata-go/pull/389)] 添加 XA 模式的事务ID +- [[#398](https://github.com/apache/incubator-seata-go/pull/398)] 支持 TM 读取配置文件 +- [[#399](https://github.com/apache/incubator-seata-go/pull/399)] 支持 getty 读取配置文件 +- [[#405](https://github.com/apache/incubator-seata-go/pull/405)] 支持 AT 模式 insert on duplicate SQL 解析 +- [[#406](https://github.com/apache/incubator-seata-go/pull/406)] 支持 transport 读取配置文件 +- [[#410](https://github.com/apache/incubator-seata-go/pull/410)] 支持 undo log 读取配置文件 +- [[#411](https://github.com/apache/incubator-seata-go/pull/411)] 在项目中使用 tm 的配置文件属性 +- [[#412](https://github.com/apache/incubator-seata-go/pull/412)] 支持 RM 读取配置文件 +- [[#413](https://github.com/apache/incubator-seata-go/pull/413)] 支持 service 读取配置文件 +- [[#419](https://github.com/apache/incubator-seata-go/pull/419)] 在项目中使用 undo log 的配置文件属性 +- [[#421](https://github.com/apache/incubator-seata-go/pull/421)] 支持 service 读取配置文件 ### bugfix: -- [[#387](https://github.com/seata/seata-go/pull/387)] 修复 OpenConnector 中死循环的问题 -- [[#401](https://github.com/seata/seata-go/pull/401)] 优化注册事务分支的流程 -- [[#418](https://github.com/seata/seata-go/pull/418)] 修复 undo log 的配置文件的问题 -- [[#423](https://github.com/seata/seata-go/pull/423)] 修复 getty 初始化失败的问题 -- [[#424](https://github.com/seata/seata-go/pull/424)] 修复 getty 初始化失败的问题 -- [[#429](https://github.com/seata/seata-go/pull/429)] 修复 AT 模式执行失败的问题 +- [[#387](https://github.com/apache/incubator-seata-go/pull/387)] 修复 OpenConnector 中死循环的问题 +- [[#401](https://github.com/apache/incubator-seata-go/pull/401)] 优化注册事务分支的流程 +- [[#418](https://github.com/apache/incubator-seata-go/pull/418)] 修复 undo log 的配置文件的问题 +- [[#423](https://github.com/apache/incubator-seata-go/pull/423)] 修复 getty 初始化失败的问题 +- [[#424](https://github.com/apache/incubator-seata-go/pull/424)] 修复 getty 初始化失败的问题 +- [[#429](https://github.com/apache/incubator-seata-go/pull/429)] 修复 AT 模式执行失败的问题 ### optimize: -- [[#366](https://github.com/seata/seata-go/pull/366)] AT 回滚前添加数据校验逻辑 -- [[#367](https://github.com/seata/seata-go/pull/367)] 优化 AT 代码的命名 -- [[#369](https://github.com/seata/seata-go/pull/369)] 移除不用的方法 -- [[#385](https://github.com/seata/seata-go/pull/385)] 优化 AT sample 的建表SQL -- [[#388](https://github.com/seata/seata-go/pull/388)] 优化代码注释,删除不用的代码 -- [[#390](https://github.com/seata/seata-go/pull/390)] 优化 RM 的初始化流程 -- [[#392](https://github.com/seata/seata-go/pull/392)] 优化代码的风格问题 -- [[#394](https://github.com/seata/seata-go/pull/394)] 重构 AT 模式的执行器 -- [[#400](https://github.com/seata/seata-go/pull/400)] 优化 protocol 的初始化流程 -- [[#408](https://github.com/seata/seata-go/pull/408)] 优化 log 的初始化流程 -- [[#409](https://github.com/seata/seata-go/pull/409)] 重构 AT 模式的 delete 和 insert SQL 的执行逻辑 -- [[#414](https://github.com/seata/seata-go/pull/414)] 重命名单测文件 -- [[#422](https://github.com/seata/seata-go/pull/422)] 移除未使用的 config 代码 +- [[#366](https://github.com/apache/incubator-seata-go/pull/366)] AT 回滚前添加数据校验逻辑 +- [[#367](https://github.com/apache/incubator-seata-go/pull/367)] 优化 AT 代码的命名 +- [[#369](https://github.com/apache/incubator-seata-go/pull/369)] 移除不用的方法 +- [[#385](https://github.com/apache/incubator-seata-go/pull/385)] 优化 AT sample 的建表SQL +- [[#388](https://github.com/apache/incubator-seata-go/pull/388)] 优化代码注释,删除不用的代码 +- [[#390](https://github.com/apache/incubator-seata-go/pull/390)] 优化 RM 的初始化流程 +- [[#392](https://github.com/apache/incubator-seata-go/pull/392)] 优化代码的风格问题 +- [[#394](https://github.com/apache/incubator-seata-go/pull/394)] 重构 AT 模式的执行器 +- [[#400](https://github.com/apache/incubator-seata-go/pull/400)] 优化 protocol 的初始化流程 +- [[#408](https://github.com/apache/incubator-seata-go/pull/408)] 优化 log 的初始化流程 +- [[#409](https://github.com/apache/incubator-seata-go/pull/409)] 重构 AT 模式的 delete 和 insert SQL 的执行逻辑 +- [[#414](https://github.com/apache/incubator-seata-go/pull/414)] 重命名单测文件 +- [[#422](https://github.com/apache/incubator-seata-go/pull/422)] 移除未使用的 config 代码 ### test: ### doc: -- [[#417](https://github.com/seata/seata-go/pull/417)] 调整 readme 文件内容 +- [[#417](https://github.com/apache/incubator-seata-go/pull/417)] 调整 readme 文件内容 ### contributors: diff --git a/changes/1.1.0.md b/changes/1.1.0.md index 4e2f7550..49b96572 100644 --- a/changes/1.1.0.md +++ b/changes/1.1.0.md @@ -30,43 +30,43 @@ The version is updated as follows: ### feature: -- [[#491](https://github.com/seata/seata-go/pull/491)] support query global lock key -- [[#482](https://github.com/seata/seata-go/pull/482)] support multi delete SQL executor in AT -- [[#481](https://github.com/seata/seata-go/pull/481)] support multi update SQL executor in AT -- [[#478](https://github.com/seata/seata-go/pull/478)] support select for update SQL executor in AT -- [[#477](https://github.com/seata/seata-go/pull/477)] support the json serialization method of undo log -- [[#456](https://github.com/seata/seata-go/pull/456)] support insert on update SQL executor in AT -- [[#444](https://github.com/seata/seata-go/pull/444)] support BZip2Compressor -- [[#436](https://github.com/seata/seata-go/pull/436)] use rm config file -- [[#433](https://github.com/seata/seata-go/pull/433)] support xa connect manager -- [[#430](https://github.com/seata/seata-go/pull/430)] use getty config file +- [[#491](https://github.com/apache/incubator-seata-go/pull/491)] support query global lock key +- [[#482](https://github.com/apache/incubator-seata-go/pull/482)] support multi delete SQL executor in AT +- [[#481](https://github.com/apache/incubator-seata-go/pull/481)] support multi update SQL executor in AT +- [[#478](https://github.com/apache/incubator-seata-go/pull/478)] support select for update SQL executor in AT +- [[#477](https://github.com/apache/incubator-seata-go/pull/477)] support the json serialization method of undo log +- [[#456](https://github.com/apache/incubator-seata-go/pull/456)] support insert on update SQL executor in AT +- [[#444](https://github.com/apache/incubator-seata-go/pull/444)] support BZip2Compressor +- [[#436](https://github.com/apache/incubator-seata-go/pull/436)] use rm config file +- [[#433](https://github.com/apache/incubator-seata-go/pull/433)] support xa connect manager +- [[#430](https://github.com/apache/incubator-seata-go/pull/430)] use getty config file ### bugfix: -- [[#509](https://github.com/seata/seata-go/pull/509)] fix undo log SQLType when execute insert on update SQL in AT -- [[#495](https://github.com/seata/seata-go/pull/495)] fix undo log SQLType bug -- [[#487](https://github.com/seata/seata-go/pull/487)] fix at bug when execute -- [[#472](https://github.com/seata/seata-go/pull/472)] fix missing value of context When using global transactions -- [[#461](https://github.com/seata/seata-go/pull/461)] fix the problem of error_code_test -- [[#459](https://github.com/seata/seata-go/pull/459)] fix the rollback error log -- [[#452](https://github.com/seata/seata-go/pull/452)] fix the error of id self-increment when executing insert sql in AT +- [[#509](https://github.com/apache/incubator-seata-go/pull/509)] fix undo log SQLType when execute insert on update SQL in AT +- [[#495](https://github.com/apache/incubator-seata-go/pull/495)] fix undo log SQLType bug +- [[#487](https://github.com/apache/incubator-seata-go/pull/487)] fix at bug when execute +- [[#472](https://github.com/apache/incubator-seata-go/pull/472)] fix missing value of context When using global transactions +- [[#461](https://github.com/apache/incubator-seata-go/pull/461)] fix the problem of error_code_test +- [[#459](https://github.com/apache/incubator-seata-go/pull/459)] fix the rollback error log +- [[#452](https://github.com/apache/incubator-seata-go/pull/452)] fix the error of id self-increment when executing insert sql in AT ### optimize: -- [[#507](https://github.com/seata/seata-go/pull/507)] refactor logic of multiple update sql in AT -- [[#505](https://github.com/seata/seata-go/pull/505)] optimize multi SQL executor in AT -- [[#453](https://github.com/seata/seata-go/pull/453)] optimize the messageType and transactionErrorCode enum -- [[#447](https://github.com/seata/seata-go/pull/447)] optimize the datasource init process -- [[#466](https://github.com/seata/seata-go/pull/466)] optimize variable naming +- [[#507](https://github.com/apache/incubator-seata-go/pull/507)] refactor logic of multiple update sql in AT +- [[#505](https://github.com/apache/incubator-seata-go/pull/505)] optimize multi SQL executor in AT +- [[#453](https://github.com/apache/incubator-seata-go/pull/453)] optimize the messageType and transactionErrorCode enum +- [[#447](https://github.com/apache/incubator-seata-go/pull/447)] optimize the datasource init process +- [[#466](https://github.com/apache/incubator-seata-go/pull/466)] optimize variable naming ### test: -- [[#445](https://github.com/seata/seata-go/pull/445)] add unit test for TransactionErrorCode and MessageType +- [[#445](https://github.com/apache/incubator-seata-go/pull/445)] add unit test for TransactionErrorCode and MessageType ### doc: -- [[#492](https://github.com/seata/seata-go/pull/492)] update feature list of readme -- [[#489](https://github.com/seata/seata-go/pull/489)] add change-log of version 1.1.0 +- [[#492](https://github.com/apache/incubator-seata-go/pull/492)] update feature list of readme +- [[#489](https://github.com/apache/incubator-seata-go/pull/489)] add change-log of version 1.1.0 ### contributors: diff --git a/changes/1.1.0_zh.md b/changes/1.1.0_zh.md index a362e58f..3e0f3aab 100644 --- a/changes/1.1.0_zh.md +++ b/changes/1.1.0_zh.md @@ -30,43 +30,43 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 ### feature: -- [[#491](https://github.com/seata/seata-go/pull/491)] 支持查询全局事务锁 -- [[#482](https://github.com/seata/seata-go/pull/482)] 支持 AT 模式 multi delete SQL 执行器 -- [[#481](https://github.com/seata/seata-go/pull/481)] 支持 AT 模式 multi update SQL 执行器 -- [[#478](https://github.com/seata/seata-go/pull/478)] 支持 AT 模式 select for update SQL 执行器 -- [[#477](https://github.com/seata/seata-go/pull/477)] 支持 undo log 的 json 序列化方式 -- [[#456](https://github.com/seata/seata-go/pull/456)] 支持 AT 模式 insert on update SQL 执行器 -- [[#444](https://github.com/seata/seata-go/pull/444)] 支持 BZip 压缩算法 -- [[#436](https://github.com/seata/seata-go/pull/436)] 支持读取 rm 相关的配置文件 -- [[#433](https://github.com/seata/seata-go/pull/433)] 支持 xa 连接管理 -- [[#430](https://github.com/seata/seata-go/pull/430)] 支持读取 getty 相关的配置文件 +- [[#491](https://github.com/apache/incubator-seata-go/pull/491)] 支持查询全局事务锁 +- [[#482](https://github.com/apache/incubator-seata-go/pull/482)] 支持 AT 模式 multi delete SQL 执行器 +- [[#481](https://github.com/apache/incubator-seata-go/pull/481)] 支持 AT 模式 multi update SQL 执行器 +- [[#478](https://github.com/apache/incubator-seata-go/pull/478)] 支持 AT 模式 select for update SQL 执行器 +- [[#477](https://github.com/apache/incubator-seata-go/pull/477)] 支持 undo log 的 json 序列化方式 +- [[#456](https://github.com/apache/incubator-seata-go/pull/456)] 支持 AT 模式 insert on update SQL 执行器 +- [[#444](https://github.com/apache/incubator-seata-go/pull/444)] 支持 BZip 压缩算法 +- [[#436](https://github.com/apache/incubator-seata-go/pull/436)] 支持读取 rm 相关的配置文件 +- [[#433](https://github.com/apache/incubator-seata-go/pull/433)] 支持 xa 连接管理 +- [[#430](https://github.com/apache/incubator-seata-go/pull/430)] 支持读取 getty 相关的配置文件 ### bugfix: -- [[#509](https://github.com/seata/seata-go/pull/509)] 修复 AT 模式下执行 insert on update 时 undo log 的 SQLType 字段的问题 -- [[#495](https://github.com/seata/seata-go/pull/495)] 修复 undo log 的 SQLType 字段的问题 -- [[#487](https://github.com/seata/seata-go/pull/487)] 修复 AT 执行时出现的问题 -- [[#472](https://github.com/seata/seata-go/pull/472)] 修复全局事务中上下文丢失值问题 -- [[#461](https://github.com/seata/seata-go/pull/461)] 修复 error_code_test 中变量未定义导致的 ci 失败问题 -- [[#459](https://github.com/seata/seata-go/pull/459)] 修复 error 日志重复打印问题 -- [[#452](https://github.com/seata/seata-go/pull/452)] 修复 AT 模式 执行 insert SQL 时 id 自增的报错问题 +- [[#509](https://github.com/apache/incubator-seata-go/pull/509)] 修复 AT 模式下执行 insert on update 时 undo log 的 SQLType 字段的问题 +- [[#495](https://github.com/apache/incubator-seata-go/pull/495)] 修复 undo log 的 SQLType 字段的问题 +- [[#487](https://github.com/apache/incubator-seata-go/pull/487)] 修复 AT 执行时出现的问题 +- [[#472](https://github.com/apache/incubator-seata-go/pull/472)] 修复全局事务中上下文丢失值问题 +- [[#461](https://github.com/apache/incubator-seata-go/pull/461)] 修复 error_code_test 中变量未定义导致的 ci 失败问题 +- [[#459](https://github.com/apache/incubator-seata-go/pull/459)] 修复 error 日志重复打印问题 +- [[#452](https://github.com/apache/incubator-seata-go/pull/452)] 修复 AT 模式 执行 insert SQL 时 id 自增的报错问题 ### optimize: -- [[#507](https://github.com/seata/seata-go/pull/507)] 优化 AT 模式 multiple update SQL 执行器 -- [[#505](https://github.com/seata/seata-go/pull/505)] 优化 AT 模式 multi SQL 执行器 -- [[#453](https://github.com/seata/seata-go/pull/453)] 优化 messageType 和 transactionErrorCode 枚举值 -- [[#447](https://github.com/seata/seata-go/pull/447)] 优化数据源初始化流程 -- [[#466](https://github.com/seata/seata-go/pull/466)] 优化变量的命名 +- [[#507](https://github.com/apache/incubator-seata-go/pull/507)] 优化 AT 模式 multiple update SQL 执行器 +- [[#505](https://github.com/apache/incubator-seata-go/pull/505)] 优化 AT 模式 multi SQL 执行器 +- [[#453](https://github.com/apache/incubator-seata-go/pull/453)] 优化 messageType 和 transactionErrorCode 枚举值 +- [[#447](https://github.com/apache/incubator-seata-go/pull/447)] 优化数据源初始化流程 +- [[#466](https://github.com/apache/incubator-seata-go/pull/466)] 优化变量的命名 ### test: -- [[#445](https://github.com/seata/seata-go/pull/445)] 添加 TransactionErrorCode 的单元测试 +- [[#445](https://github.com/apache/incubator-seata-go/pull/445)] 添加 TransactionErrorCode 的单元测试 ### doc: -- [[#492](https://github.com/seata/seata-go/pull/492)] 更新 readme 文件的已完成功能列表 -- [[#489](https://github.com/seata/seata-go/pull/489)] 添加 1.1.0 版本的 change log +- [[#492](https://github.com/apache/incubator-seata-go/pull/492)] 更新 readme 文件的已完成功能列表 +- [[#489](https://github.com/apache/incubator-seata-go/pull/489)] 添加 1.1.0 版本的 change log ### contributors: diff --git a/changes/1.2.0.md b/changes/1.2.0.md index 3785a359..481eabd9 100644 --- a/changes/1.2.0.md +++ b/changes/1.2.0.md @@ -30,33 +30,33 @@ The version is updated as follows: ### feature: -- [[#534](https://github.com/seata/seata-go/pull/534)] support session load balance -- [[#535](https://github.com/seata/seata-go/pull/535)] add integrate test +- [[#534](https://github.com/apache/incubator-seata-go/pull/534)] support session load balance +- [[#535](https://github.com/apache/incubator-seata-go/pull/535)] add integrate test ### bugfix: -- [[#540](https://github.com/seata/seata-go/pull/540)] fix init xa panic bug -- [[#545](https://github.com/seata/seata-go/pull/545)] fix get db version bug -- [[#548](https://github.com/seata/seata-go/pull/548)] fix start xa failed bug -- [[#556](https://github.com/seata/seata-go/pull/556)] fix start xa driver failed bug -- [[#562](https://github.com/seata/seata-go/pull/562)] fix commit xa panic bug -- [[#564](https://github.com/seata/seata-go/pull/564)] fix commit xa branch bug -- [[#566](https://github.com/seata/seata-go/pull/566)] fix execute local tx bug +- [[#540](https://github.com/apache/incubator-seata-go/pull/540)] fix init xa panic bug +- [[#545](https://github.com/apache/incubator-seata-go/pull/545)] fix get db version bug +- [[#548](https://github.com/apache/incubator-seata-go/pull/548)] fix start xa failed bug +- [[#556](https://github.com/apache/incubator-seata-go/pull/556)] fix start xa driver failed bug +- [[#562](https://github.com/apache/incubator-seata-go/pull/562)] fix commit xa panic bug +- [[#564](https://github.com/apache/incubator-seata-go/pull/564)] fix commit xa branch bug +- [[#566](https://github.com/apache/incubator-seata-go/pull/566)] fix execute local tx bug ### optimize: -- [[#523](https://github.com/seata/seata-go/pull/523)] optimize the golang ci lint -- [[#525](https://github.com/seata/seata-go/pull/456)] rename parser name from jackson to json -- [[#532](https://github.com/seata/seata-go/pull/532)] remove duplicate code -- [[#536](https://github.com/seata/seata-go/pull/536)] format go import -- [[#554](https://github.com/seata/seata-go/pull/554)] optimize the performance of XA transactions -- [[#561](https://github.com/seata/seata-go/pull/561)] optimize xa output log +- [[#523](https://github.com/apache/incubator-seata-go/pull/523)] optimize the golang ci lint +- [[#525](https://github.com/apache/incubator-seata-go/pull/456)] rename parser name from jackson to json +- [[#532](https://github.com/apache/incubator-seata-go/pull/532)] remove duplicate code +- [[#536](https://github.com/apache/incubator-seata-go/pull/536)] format go import +- [[#554](https://github.com/apache/incubator-seata-go/pull/554)] optimize the performance of XA transactions +- [[#561](https://github.com/apache/incubator-seata-go/pull/561)] optimize xa output log ### test: ### doc: -- [[#550](https://github.com/seata/seata-go/pull/550)] add change-log of version 1.2.0 +- [[#550](https://github.com/apache/incubator-seata-go/pull/550)] add change-log of version 1.2.0 ### contributors: diff --git a/changes/1.2.0_zh.md b/changes/1.2.0_zh.md index 196acb4b..3e01479b 100644 --- a/changes/1.2.0_zh.md +++ b/changes/1.2.0_zh.md @@ -30,33 +30,33 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 ### feature: -- [[#534](https://github.com/seata/seata-go/pull/534)] 支持 session 的负载均衡 -- [[#535](https://github.com/seata/seata-go/pull/535)] 添加加成测试 +- [[#534](https://github.com/apache/incubator-seata-go/pull/534)] 支持 session 的负载均衡 +- [[#535](https://github.com/apache/incubator-seata-go/pull/535)] 添加加成测试 ### bugfix: -- [[#540](https://github.com/seata/seata-go/pull/540)] 修复初始化 xa 模式的 bug -- [[#545](https://github.com/seata/seata-go/pull/545)] 修复 xa 模式获取 db 版本号的 bug -- [[#548](https://github.com/seata/seata-go/pull/548)] 修复启动 xa 时候会失败的 bug -- [[#556](https://github.com/seata/seata-go/pull/556)] 修复 xa 数据源的 bug -- [[#562](https://github.com/seata/seata-go/pull/562)] 修复提交 xa 全局事务的 bug -- [[#564](https://github.com/seata/seata-go/pull/564)] 修复提交 xa 分支事务的 bug -- [[#566](https://github.com/seata/seata-go/pull/566)] 修复使用 xa 数据源执行本地事务的 bug +- [[#540](https://github.com/apache/incubator-seata-go/pull/540)] 修复初始化 xa 模式的 bug +- [[#545](https://github.com/apache/incubator-seata-go/pull/545)] 修复 xa 模式获取 db 版本号的 bug +- [[#548](https://github.com/apache/incubator-seata-go/pull/548)] 修复启动 xa 时候会失败的 bug +- [[#556](https://github.com/apache/incubator-seata-go/pull/556)] 修复 xa 数据源的 bug +- [[#562](https://github.com/apache/incubator-seata-go/pull/562)] 修复提交 xa 全局事务的 bug +- [[#564](https://github.com/apache/incubator-seata-go/pull/564)] 修复提交 xa 分支事务的 bug +- [[#566](https://github.com/apache/incubator-seata-go/pull/566)] 修复使用 xa 数据源执行本地事务的 bug ### optimize: -- [[#523](https://github.com/seata/seata-go/pull/523)] 优化 CI 流程 -- [[#525](https://github.com/seata/seata-go/pull/456)] 将 jackson 序列化重命名为 json -- [[#532](https://github.com/seata/seata-go/pull/532)] 移除重复的代码 -- [[#536](https://github.com/seata/seata-go/pull/536)] 优化 go import 代码格式 -- [[#554](https://github.com/seata/seata-go/pull/554)] 优化 xa 模式的性能 -- [[#561](https://github.com/seata/seata-go/pull/561)] 优化 xa 模式的日志输出 +- [[#523](https://github.com/apache/incubator-seata-go/pull/523)] 优化 CI 流程 +- [[#525](https://github.com/apache/incubator-seata-go/pull/456)] 将 jackson 序列化重命名为 json +- [[#532](https://github.com/apache/incubator-seata-go/pull/532)] 移除重复的代码 +- [[#536](https://github.com/apache/incubator-seata-go/pull/536)] 优化 go import 代码格式 +- [[#554](https://github.com/apache/incubator-seata-go/pull/554)] 优化 xa 模式的性能 +- [[#561](https://github.com/apache/incubator-seata-go/pull/561)] 优化 xa 模式的日志输出 ### test: ### doc: -- [[#550](https://github.com/seata/seata-go/pull/550)] 添加 1.2.0 版本的改动日志 +- [[#550](https://github.com/apache/incubator-seata-go/pull/550)] 添加 1.2.0 版本的改动日志 ### contributors: diff --git a/changes/dev.md b/changes/dev.md index 8884de14..bff48e9d 100755 --- a/changes/dev.md +++ b/changes/dev.md @@ -25,19 +25,19 @@ ### feature: - - [[#123](https://github.com/seata/seata-go/pull/123)] add two phase and dubbo + - [[#123](https://github.com/apache/incubator-seata-go/pull/123)] add two phase and dubbo ### bugfix: - - [[#130](https://github.com/seata/seata-go/pull/130)] getty session auto close bug + - [[#130](https://github.com/apache/incubator-seata-go/pull/130)] getty session auto close bug ### optimize: - - [[#125](https://github.com/seata/seata-go/pull/125)] optimize named for the resource manager api and tcc resource + - [[#125](https://github.com/apache/incubator-seata-go/pull/125)] optimize named for the resource manager api and tcc resource ### test: - - [[#xxx](https://github.com/seata/seata-go/pull/xxx)] test case for xxx + - [[#xxx](https://github.com/apache/incubator-seata-go/pull/xxx)] test case for xxx ### contributors: diff --git a/changes/dev_zh.md b/changes/dev_zh.md index b33e0b5a..689aefaf 100644 --- a/changes/dev_zh.md +++ b/changes/dev_zh.md @@ -26,19 +26,19 @@ Seata-go 是一款开源的分布式事务解决方案,提供高性能和简 ### feature: -- [[#123](https://github.com/seata/seata-go/pull/123)] 添加二阶段事务接口,以及dubbo集成 +- [[#123](https://github.com/apache/incubator-seata-go/pull/123)] 添加二阶段事务接口,以及dubbo集成 ### bugfix: -- [[#130](https://github.com/seata/seata-go/pull/130)] 修复getty session自动关闭的bug +- [[#130](https://github.com/apache/incubator-seata-go/pull/130)] 修复getty session自动关闭的bug ### optimize: -- [[#125](https://github.com/seata/seata-go/pull/125)] 优化resourceManagerApi和tccResource功能 +- [[#125](https://github.com/apache/incubator-seata-go/pull/125)] 优化resourceManagerApi和tccResource功能 ### test: -- [[#xxx](https://github.com/seata/seata-go/pull/xxx)] 添加xxx的单元测试 +- [[#xxx](https://github.com/apache/incubator-seata-go/pull/xxx)] 添加xxx的单元测试 ### contributors: diff --git a/coverage.txt b/coverage.txt deleted file mode 100644 index 1349fa28..00000000 --- a/coverage.txt +++ /dev/null @@ -1,4 +0,0 @@ -mode: atomic -github.com/seata/seata-go/pkg/rm/tcc/tcc_resource.go:20.51,22.2 1 0 -github.com/seata/seata-go/pkg/rm/tcc/tcc_resource.go:24.46,26.2 1 0 -github.com/seata/seata-go/pkg/rm/tcc/tcc_resource.go:28.56,30.2 1 0 diff --git a/go.mod b/go.mod index b7d53291..eb77d6ab 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/seata/seata-go +module seata.apache.org/seata-go go 1.20 diff --git a/goimports.sh b/goimports.sh index 5fb713be..0322f796 100755 --- a/goimports.sh +++ b/goimports.sh @@ -17,7 +17,7 @@ # format go imports style go install golang.org/x/tools/cmd/goimports -goimports -local github.com/seata/seata-go -w . +goimports -local seata.apache.org/seata-go -w . # format licence style go install github.com/apache/skywalking-eyes/cmd/license-eye@latest diff --git a/integrate_test.sh b/integrate_test.sh index 19062de3..d0485146 100644 --- a/integrate_test.sh +++ b/integrate_test.sh @@ -36,11 +36,11 @@ echo "github pull request base branch -> $3" echo "github pull request head branch -> ${GITHUB_HEAD_REF}" echo "use seata-go-samples $3 branch for integration testing" -git clone https://github.com/seata/seata-go-samples samples && cd samples +git clone https://github.com/apache/incubator-seata-go-samples samples && cd samples # update seata-go to current commit id -go mod edit -replace=github.com/seata/seata-go=github.com/"$1"@"$2" +go mod edit -replace=seata.apache.org/seata-go=github.com/"$1"@"$2" go mod tidy diff --git a/makefile b/makefile index 19898982..9b3ee11f 100644 --- a/makefile +++ b/makefile @@ -33,7 +33,7 @@ LICENSE_DIR = /tmp/tools/license # format import code format-import: go get -d github.com/dubbogo/tools/cmd/imports-formatter - imports-formatter -path . -module github.com/seata/seata-go -bl false + imports-formatter -path . -module seata.apache.org/seata-go -bl false unit-test: go test ./pkg/... -coverprofile=coverage.txt -covermode=atomic diff --git a/pkg/client/client.go b/pkg/client/client.go index 54a56888..5c119187 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -20,18 +20,18 @@ package client import ( "sync" - "github.com/seata/seata-go/pkg/datasource" - at "github.com/seata/seata-go/pkg/datasource/sql" - "github.com/seata/seata-go/pkg/datasource/sql/exec/config" - "github.com/seata/seata-go/pkg/discovery" - "github.com/seata/seata-go/pkg/integration" - remoteConfig "github.com/seata/seata-go/pkg/remoting/config" - "github.com/seata/seata-go/pkg/remoting/getty" - "github.com/seata/seata-go/pkg/remoting/processor/client" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/rm/tcc" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource" + at "seata.apache.org/seata-go/pkg/datasource/sql" + "seata.apache.org/seata-go/pkg/datasource/sql/exec/config" + "seata.apache.org/seata-go/pkg/discovery" + "seata.apache.org/seata-go/pkg/integration" + remoteConfig "seata.apache.org/seata-go/pkg/remoting/config" + "seata.apache.org/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/remoting/processor/client" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/rm/tcc" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) // Init seata client client diff --git a/pkg/client/config.go b/pkg/client/config.go index 4c56be27..2e15c45b 100644 --- a/pkg/client/config.go +++ b/pkg/client/config.go @@ -32,15 +32,15 @@ import ( "github.com/knadh/koanf/parsers/yaml" "github.com/knadh/koanf/providers/rawbytes" - "github.com/seata/seata-go/pkg/discovery" - - "github.com/seata/seata-go/pkg/datasource/sql" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - remoteConfig "github.com/seata/seata-go/pkg/remoting/config" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/rm/tcc" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/flagext" + "seata.apache.org/seata-go/pkg/discovery" + + "seata.apache.org/seata-go/pkg/datasource/sql" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + remoteConfig "seata.apache.org/seata-go/pkg/remoting/config" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/rm/tcc" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/flagext" ) const ( diff --git a/pkg/compressor/deflate_compress.go b/pkg/compressor/deflate_compress.go index ed53b4f6..64fab3f2 100644 --- a/pkg/compressor/deflate_compress.go +++ b/pkg/compressor/deflate_compress.go @@ -22,7 +22,7 @@ import ( "compress/flate" "io" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" ) type DeflateCompress struct{} diff --git a/pkg/datasource/init.go b/pkg/datasource/init.go index 19aaf420..f3f42027 100644 --- a/pkg/datasource/init.go +++ b/pkg/datasource/init.go @@ -18,7 +18,7 @@ package datasource import ( - "github.com/seata/seata-go/pkg/datasource/sql" + "seata.apache.org/seata-go/pkg/datasource/sql" ) func Init() { diff --git a/pkg/datasource/sql/async_worker.go b/pkg/datasource/sql/async_worker.go index 1eb918f4..44be4e86 100644 --- a/pkg/datasource/sql/async_worker.go +++ b/pkg/datasource/sql/async_worker.go @@ -22,16 +22,16 @@ import ( "flag" "time" - "github.com/seata/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/rm" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/util/fanout" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/util/fanout" + "seata.apache.org/seata-go/pkg/util/log" ) type phaseTwoContext struct { diff --git a/pkg/datasource/sql/at_resource_manager.go b/pkg/datasource/sql/at_resource_manager.go index 0e2da590..9d161fe7 100644 --- a/pkg/datasource/sql/at_resource_manager.go +++ b/pkg/datasource/sql/at_resource_manager.go @@ -25,12 +25,12 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" - serr "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" + serr "seata.apache.org/seata-go/pkg/util/errors" ) func InitAT(cfg undo.Config, asyncCfg AsyncWorkerConfig) { diff --git a/pkg/datasource/sql/conn.go b/pkg/datasource/sql/conn.go index f7e63150..7a2b0423 100644 --- a/pkg/datasource/sql/conn.go +++ b/pkg/datasource/sql/conn.go @@ -21,9 +21,9 @@ import ( "context" "database/sql/driver" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" ) // Conn is a connection to a database. It is not used concurrently diff --git a/pkg/datasource/sql/conn_at.go b/pkg/datasource/sql/conn_at.go index e640254a..f1d0f5ed 100644 --- a/pkg/datasource/sql/conn_at.go +++ b/pkg/datasource/sql/conn_at.go @@ -22,10 +22,10 @@ import ( gosql "database/sql" "database/sql/driver" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) // ATConn Database connection proxy object under XA transaction model diff --git a/pkg/datasource/sql/conn_at_test.go b/pkg/datasource/sql/conn_at_test.go index fa92620a..33961a70 100644 --- a/pkg/datasource/sql/conn_at_test.go +++ b/pkg/datasource/sql/conn_at_test.go @@ -28,11 +28,11 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/mock" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/mock" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/tm" ) func TestMain(m *testing.M) { diff --git a/pkg/datasource/sql/conn_xa.go b/pkg/datasource/sql/conn_xa.go index e5a002e9..b370845c 100644 --- a/pkg/datasource/sql/conn_xa.go +++ b/pkg/datasource/sql/conn_xa.go @@ -25,10 +25,10 @@ import ( "fmt" "time" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/xa" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/xa" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) var xaConnTimeout time.Duration diff --git a/pkg/datasource/sql/conn_xa_test.go b/pkg/datasource/sql/conn_xa_test.go index 6d3719f5..3546a06f 100644 --- a/pkg/datasource/sql/conn_xa_test.go +++ b/pkg/datasource/sql/conn_xa_test.go @@ -31,11 +31,11 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/mock" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/mock" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/tm" ) type mysqlMockRows struct { diff --git a/pkg/datasource/sql/connector.go b/pkg/datasource/sql/connector.go index 98d6b78e..e8798f1f 100644 --- a/pkg/datasource/sql/connector.go +++ b/pkg/datasource/sql/connector.go @@ -24,7 +24,7 @@ import ( "github.com/go-sql-driver/mysql" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) type seataATConnector struct { diff --git a/pkg/datasource/sql/connector_test.go b/pkg/datasource/sql/connector_test.go index 0e99513a..d64776d4 100644 --- a/pkg/datasource/sql/connector_test.go +++ b/pkg/datasource/sql/connector_test.go @@ -27,10 +27,10 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/mock" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/util/reflectx" + "seata.apache.org/seata-go/pkg/datasource/sql/mock" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/util/reflectx" ) type initConnectorFunc func(t *testing.T, ctrl *gomock.Controller) driver.Connector diff --git a/pkg/datasource/sql/datasource/base/meta_cache.go b/pkg/datasource/sql/datasource/base/meta_cache.go index b7e4e15e..859157e2 100644 --- a/pkg/datasource/sql/datasource/base/meta_cache.go +++ b/pkg/datasource/sql/datasource/base/meta_cache.go @@ -24,7 +24,7 @@ import ( "sync" "time" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) type ( diff --git a/pkg/datasource/sql/datasource/datasource_manager.go b/pkg/datasource/sql/datasource/datasource_manager.go index b5457298..b1fcf259 100644 --- a/pkg/datasource/sql/datasource/datasource_manager.go +++ b/pkg/datasource/sql/datasource/datasource_manager.go @@ -23,9 +23,9 @@ import ( "fmt" "sync" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" ) var ( diff --git a/pkg/datasource/sql/datasource/mysql/meta_cache.go b/pkg/datasource/sql/datasource/mysql/meta_cache.go index 94e730e8..82ac0fbc 100644 --- a/pkg/datasource/sql/datasource/mysql/meta_cache.go +++ b/pkg/datasource/sql/datasource/mysql/meta_cache.go @@ -24,8 +24,8 @@ import ( "sync" "time" - "github.com/seata/seata-go/pkg/datasource/sql/datasource/base" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource/base" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) var ( diff --git a/pkg/datasource/sql/datasource/mysql/trigger.go b/pkg/datasource/sql/datasource/mysql/trigger.go index 2104c04e..5512a416 100644 --- a/pkg/datasource/sql/datasource/mysql/trigger.go +++ b/pkg/datasource/sql/datasource/mysql/trigger.go @@ -25,8 +25,8 @@ import ( "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo/executor" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/executor" ) type mysqlTrigger struct { diff --git a/pkg/datasource/sql/db.go b/pkg/datasource/sql/db.go index 7056e6c5..df162d10 100644 --- a/pkg/datasource/sql/db.go +++ b/pkg/datasource/sql/db.go @@ -24,13 +24,13 @@ import ( "fmt" "sync" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/datasource/sql/xa" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/datasource/sql/xa" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/util/log" ) type dbOption func(db *DBResource) diff --git a/pkg/datasource/sql/driver.go b/pkg/datasource/sql/driver.go index 165cead4..a4b51110 100644 --- a/pkg/datasource/sql/driver.go +++ b/pkg/datasource/sql/driver.go @@ -29,12 +29,12 @@ import ( "github.com/go-sql-driver/mysql" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - mysql2 "github.com/seata/seata-go/pkg/datasource/sql/datasource/mysql" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + mysql2 "seata.apache.org/seata-go/pkg/datasource/sql/datasource/mysql" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/datasource/sql/driver_test.go b/pkg/datasource/sql/driver_test.go index 034bf534..93f88c00 100644 --- a/pkg/datasource/sql/driver_test.go +++ b/pkg/datasource/sql/driver_test.go @@ -24,14 +24,14 @@ import ( "reflect" "testing" - "github.com/seata/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/rm" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/mock" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/util/reflectx" + "seata.apache.org/seata-go/pkg/datasource/sql/mock" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/util/reflectx" ) func initMockResourceManager(branchType branch.BranchType, ctrl *gomock.Controller) *mock.MockDataSourceManager { diff --git a/pkg/datasource/sql/exec/at/at_executor.go b/pkg/datasource/sql/exec/at/at_executor.go index 9885af64..e51db228 100644 --- a/pkg/datasource/sql/exec/at/at_executor.go +++ b/pkg/datasource/sql/exec/at/at_executor.go @@ -20,11 +20,11 @@ package at import ( "context" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/tm" ) func Init() { diff --git a/pkg/datasource/sql/exec/at/base_executor.go b/pkg/datasource/sql/exec/at/base_executor.go index a4681f86..75f0cab5 100644 --- a/pkg/datasource/sql/exec/at/base_executor.go +++ b/pkg/datasource/sql/exec/at/base_executor.go @@ -29,10 +29,10 @@ import ( "github.com/arana-db/parser/test_driver" gxsort "github.com/dubbogo/gost/sort" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/reflectx" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/reflectx" ) type baseExecutor struct { diff --git a/pkg/datasource/sql/exec/at/config.go b/pkg/datasource/sql/exec/at/config.go index 69df44de..95fd0d56 100644 --- a/pkg/datasource/sql/exec/at/config.go +++ b/pkg/datasource/sql/exec/at/config.go @@ -17,6 +17,6 @@ package at -import "github.com/seata/seata-go/pkg/rm" +import "seata.apache.org/seata-go/pkg/rm" var LockConfig rm.LockConfig diff --git a/pkg/datasource/sql/exec/at/delete_executor.go b/pkg/datasource/sql/exec/at/delete_executor.go index bd3b41a6..202ecd2c 100644 --- a/pkg/datasource/sql/exec/at/delete_executor.go +++ b/pkg/datasource/sql/exec/at/delete_executor.go @@ -25,13 +25,13 @@ import ( "github.com/arana-db/parser/ast" "github.com/arana-db/parser/format" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) // deleteExecutor execute delete SQL diff --git a/pkg/datasource/sql/exec/at/delete_executor_test.go b/pkg/datasource/sql/exec/at/delete_executor_test.go index ebf8f160..25a0ea2e 100644 --- a/pkg/datasource/sql/exec/at/delete_executor_test.go +++ b/pkg/datasource/sql/exec/at/delete_executor_test.go @@ -23,10 +23,10 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" ) func TestNewDeleteExecutor(t *testing.T) { diff --git a/pkg/datasource/sql/exec/at/escape.go b/pkg/datasource/sql/exec/at/escape.go index 324f2b04..3133b40d 100644 --- a/pkg/datasource/sql/exec/at/escape.go +++ b/pkg/datasource/sql/exec/at/escape.go @@ -21,8 +21,8 @@ import ( "database/sql" "strings" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) const ( diff --git a/pkg/datasource/sql/exec/at/escape_test.go b/pkg/datasource/sql/exec/at/escape_test.go index 9edd34e3..78f520b2 100644 --- a/pkg/datasource/sql/exec/at/escape_test.go +++ b/pkg/datasource/sql/exec/at/escape_test.go @@ -21,7 +21,7 @@ import ( "log" "testing" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" "github.com/stretchr/testify/assert" ) diff --git a/pkg/datasource/sql/exec/at/insert_executor.go b/pkg/datasource/sql/exec/at/insert_executor.go index 24426e5f..a05da506 100644 --- a/pkg/datasource/sql/exec/at/insert_executor.go +++ b/pkg/datasource/sql/exec/at/insert_executor.go @@ -25,11 +25,11 @@ import ( "github.com/arana-db/parser/ast" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/datasource/sql/exec/at/insert_executor_test.go b/pkg/datasource/sql/exec/at/insert_executor_test.go index 7419de82..fa899df1 100644 --- a/pkg/datasource/sql/exec/at/insert_executor_test.go +++ b/pkg/datasource/sql/exec/at/insert_executor_test.go @@ -29,12 +29,12 @@ import ( "github.com/arana-db/parser/test_driver" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/datasource/mysql" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource/mysql" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" ) func TestBuildSelectSQLByInsert(t *testing.T) { diff --git a/pkg/datasource/sql/exec/at/insert_on_update_executor.go b/pkg/datasource/sql/exec/at/insert_on_update_executor.go index 5d6dc794..8566a493 100644 --- a/pkg/datasource/sql/exec/at/insert_on_update_executor.go +++ b/pkg/datasource/sql/exec/at/insert_on_update_executor.go @@ -25,11 +25,11 @@ import ( "github.com/arana-db/parser/ast" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/log" ) // insertOnUpdateExecutor execute insert on update SQL diff --git a/pkg/datasource/sql/exec/at/insert_on_update_executor_test.go b/pkg/datasource/sql/exec/at/insert_on_update_executor_test.go index 7d0c0b75..aeca9c70 100644 --- a/pkg/datasource/sql/exec/at/insert_on_update_executor_test.go +++ b/pkg/datasource/sql/exec/at/insert_on_update_executor_test.go @@ -23,9 +23,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" ) func TestInsertOnUpdateBeforeImageSQL(t *testing.T) { diff --git a/pkg/datasource/sql/exec/at/multi_delete_executor.go b/pkg/datasource/sql/exec/at/multi_delete_executor.go index 5e47eb63..8ec3d258 100644 --- a/pkg/datasource/sql/exec/at/multi_delete_executor.go +++ b/pkg/datasource/sql/exec/at/multi_delete_executor.go @@ -26,11 +26,11 @@ import ( "github.com/arana-db/parser/ast" "github.com/arana-db/parser/format" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/log" ) type multiDeleteExecutor struct { diff --git a/pkg/datasource/sql/exec/at/multi_delete_executor_test.go b/pkg/datasource/sql/exec/at/multi_delete_executor_test.go index b6d70f11..a667e3ef 100644 --- a/pkg/datasource/sql/exec/at/multi_delete_executor_test.go +++ b/pkg/datasource/sql/exec/at/multi_delete_executor_test.go @@ -23,11 +23,11 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/log" ) func Test_multiDeleteExecutor_buildBeforeImageSQL(t *testing.T) { diff --git a/pkg/datasource/sql/exec/at/multi_executor.go b/pkg/datasource/sql/exec/at/multi_executor.go index 5f563f5f..0a69b496 100644 --- a/pkg/datasource/sql/exec/at/multi_executor.go +++ b/pkg/datasource/sql/exec/at/multi_executor.go @@ -21,9 +21,9 @@ import ( "context" "fmt" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/util/log" ) type multiExecutor struct { diff --git a/pkg/datasource/sql/exec/at/multi_update_excutor.go b/pkg/datasource/sql/exec/at/multi_update_excutor.go index 262d56b9..2edfae6f 100644 --- a/pkg/datasource/sql/exec/at/multi_update_excutor.go +++ b/pkg/datasource/sql/exec/at/multi_update_excutor.go @@ -29,13 +29,13 @@ import ( "github.com/arana-db/parser/model" "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) // multiUpdateExecutor execute multiple update SQL diff --git a/pkg/datasource/sql/exec/at/multi_update_excutor_test.go b/pkg/datasource/sql/exec/at/multi_update_excutor_test.go index ab5e4869..9207346d 100644 --- a/pkg/datasource/sql/exec/at/multi_update_excutor_test.go +++ b/pkg/datasource/sql/exec/at/multi_update_excutor_test.go @@ -23,13 +23,13 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/datasource/mysql" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource/mysql" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/util" ) func TestBuildSelectSQLByMultiUpdate(t *testing.T) { diff --git a/pkg/datasource/sql/exec/at/plain_executor.go b/pkg/datasource/sql/exec/at/plain_executor.go index 8d4b2f04..61cb8c8c 100644 --- a/pkg/datasource/sql/exec/at/plain_executor.go +++ b/pkg/datasource/sql/exec/at/plain_executor.go @@ -20,8 +20,8 @@ package at import ( "context" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) type plainExecutor struct { diff --git a/pkg/datasource/sql/exec/at/plain_executor_test.go b/pkg/datasource/sql/exec/at/plain_executor_test.go index cf858a15..7b75eb3c 100644 --- a/pkg/datasource/sql/exec/at/plain_executor_test.go +++ b/pkg/datasource/sql/exec/at/plain_executor_test.go @@ -26,9 +26,9 @@ import ( "github.com/DATA-DOG/go-sqlmock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/mock" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/mock" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) func TestNewPlainExecutor(t *testing.T) { diff --git a/pkg/datasource/sql/exec/at/select_for_update_executor.go b/pkg/datasource/sql/exec/at/select_for_update_executor.go index 289b666b..e3e8cd88 100644 --- a/pkg/datasource/sql/exec/at/select_for_update_executor.go +++ b/pkg/datasource/sql/exec/at/select_for_update_executor.go @@ -27,21 +27,21 @@ import ( "reflect" "time" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/tm" "github.com/arana-db/parser/ast" "github.com/arana-db/parser/format" "github.com/arana-db/parser/model" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/util/backoff" - seatabytes "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/util/backoff" + seatabytes "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/datasource/sql/exec/at/select_for_update_executor_test.go b/pkg/datasource/sql/exec/at/select_for_update_executor_test.go index 70783988..c6734473 100644 --- a/pkg/datasource/sql/exec/at/select_for_update_executor_test.go +++ b/pkg/datasource/sql/exec/at/select_for_update_executor_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) var ( diff --git a/pkg/datasource/sql/exec/at/update_executor.go b/pkg/datasource/sql/exec/at/update_executor.go index 1e3deb2e..0ac9b049 100644 --- a/pkg/datasource/sql/exec/at/update_executor.go +++ b/pkg/datasource/sql/exec/at/update_executor.go @@ -27,13 +27,13 @@ import ( "github.com/arana-db/parser/format" "github.com/arana-db/parser/model" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/util" - "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/datasource/sql/exec/at/update_executor_test.go b/pkg/datasource/sql/exec/at/update_executor_test.go index 2be300e7..770f2168 100644 --- a/pkg/datasource/sql/exec/at/update_executor_test.go +++ b/pkg/datasource/sql/exec/at/update_executor_test.go @@ -26,14 +26,14 @@ import ( "github.com/agiledragon/gomonkey/v2" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/datasource/mysql" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/util" - _ "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource/mysql" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/util" + _ "seata.apache.org/seata-go/pkg/util/log" ) func TestBuildSelectSQLByUpdate(t *testing.T) { diff --git a/pkg/datasource/sql/exec/config/config.go b/pkg/datasource/sql/exec/config/config.go index 43707373..2efd642c 100644 --- a/pkg/datasource/sql/exec/config/config.go +++ b/pkg/datasource/sql/exec/config/config.go @@ -18,8 +18,8 @@ package config import ( - "github.com/seata/seata-go/pkg/datasource/sql/exec/at" - "github.com/seata/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/datasource/sql/exec/at" + "seata.apache.org/seata-go/pkg/rm" ) func Init(config rm.LockConfig) { diff --git a/pkg/datasource/sql/exec/executor.go b/pkg/datasource/sql/exec/executor.go index e95892dd..27f47e49 100644 --- a/pkg/datasource/sql/exec/executor.go +++ b/pkg/datasource/sql/exec/executor.go @@ -21,8 +21,8 @@ import ( "context" "database/sql/driver" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) var ( diff --git a/pkg/datasource/sql/exec/hook.go b/pkg/datasource/sql/exec/hook.go index a2d703cc..88140b49 100644 --- a/pkg/datasource/sql/exec/hook.go +++ b/pkg/datasource/sql/exec/hook.go @@ -20,7 +20,7 @@ package exec import ( "context" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) var ( diff --git a/pkg/datasource/sql/exec/select_for_update_executor.go b/pkg/datasource/sql/exec/select_for_update_executor.go index 50b138d6..8426ebe5 100644 --- a/pkg/datasource/sql/exec/select_for_update_executor.go +++ b/pkg/datasource/sql/exec/select_for_update_executor.go @@ -25,19 +25,19 @@ import ( "io" "time" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/tm" "github.com/arana-db/parser/ast" "github.com/arana-db/parser/format" "github.com/arana-db/parser/model" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo/builder" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" - seatabytes "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/builder" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" + seatabytes "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/datasource/sql/hook/logger_hook.go b/pkg/datasource/sql/hook/logger_hook.go index e13d5de7..3018ca96 100644 --- a/pkg/datasource/sql/hook/logger_hook.go +++ b/pkg/datasource/sql/hook/logger_hook.go @@ -20,12 +20,12 @@ package hook import ( "context" - "github.com/seata/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" "go.uber.org/zap" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/util/log" ) func NewLoggerSQLHook() exec.SQLHook { diff --git a/pkg/datasource/sql/hook/undo_log_hook.go b/pkg/datasource/sql/hook/undo_log_hook.go index 80e760d7..fef64599 100644 --- a/pkg/datasource/sql/hook/undo_log_hook.go +++ b/pkg/datasource/sql/hook/undo_log_hook.go @@ -20,11 +20,11 @@ package hook import ( "context" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/tm" ) func NewUndoLogSQLHook() exec.SQLHook { diff --git a/pkg/datasource/sql/mock/mock_datasource_manager.go b/pkg/datasource/sql/mock/mock_datasource_manager.go index 43f54e07..b27cf78f 100644 --- a/pkg/datasource/sql/mock/mock_datasource_manager.go +++ b/pkg/datasource/sql/mock/mock_datasource_manager.go @@ -29,10 +29,10 @@ import ( gomock "github.com/golang/mock/gomock" - datasource "github.com/seata/seata-go/pkg/datasource/sql/datasource" - types "github.com/seata/seata-go/pkg/datasource/sql/types" - branch "github.com/seata/seata-go/pkg/protocol/branch" - rm "github.com/seata/seata-go/pkg/rm" + datasource "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + types "seata.apache.org/seata-go/pkg/datasource/sql/types" + branch "seata.apache.org/seata-go/pkg/protocol/branch" + rm "seata.apache.org/seata-go/pkg/rm" ) // MockDataSourceManager is a mock of DataSourceManager interface. diff --git a/pkg/datasource/sql/parser/parse_factory_test.go b/pkg/datasource/sql/parser/parse_factory_test.go index dfe06a0b..94c0cd96 100644 --- a/pkg/datasource/sql/parser/parse_factory_test.go +++ b/pkg/datasource/sql/parser/parse_factory_test.go @@ -24,11 +24,11 @@ import ( aparser "github.com/arana-db/parser" "github.com/arana-db/parser/format" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/bytes" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" _ "github.com/arana-db/parser/test_driver" ) diff --git a/pkg/datasource/sql/parser/parser_factory.go b/pkg/datasource/sql/parser/parser_factory.go index 207b4f35..e266e820 100644 --- a/pkg/datasource/sql/parser/parser_factory.go +++ b/pkg/datasource/sql/parser/parser_factory.go @@ -21,7 +21,7 @@ import ( aparser "github.com/arana-db/parser" "github.com/arana-db/parser/ast" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) func DoParser(query string) (*types.ParseContext, error) { diff --git a/pkg/datasource/sql/plugin.go b/pkg/datasource/sql/plugin.go index 8cab6ade..9da1be10 100644 --- a/pkg/datasource/sql/plugin.go +++ b/pkg/datasource/sql/plugin.go @@ -18,13 +18,13 @@ package sql import ( - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/exec/at" - "github.com/seata/seata-go/pkg/datasource/sql/hook" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/undo/builder" - "github.com/seata/seata-go/pkg/datasource/sql/undo/mysql" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/exec/at" + "seata.apache.org/seata-go/pkg/datasource/sql/hook" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/builder" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/mysql" ) func Init() { diff --git a/pkg/datasource/sql/stmt.go b/pkg/datasource/sql/stmt.go index 2314e344..12651a81 100644 --- a/pkg/datasource/sql/stmt.go +++ b/pkg/datasource/sql/stmt.go @@ -21,9 +21,9 @@ import ( "context" "database/sql/driver" - "github.com/seata/seata-go/pkg/datasource/sql/exec" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/util" + "seata.apache.org/seata-go/pkg/datasource/sql/exec" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/util" ) type Stmt struct { diff --git a/pkg/datasource/sql/tx.go b/pkg/datasource/sql/tx.go index 2cabbd27..a6c5f70f 100644 --- a/pkg/datasource/sql/tx.go +++ b/pkg/datasource/sql/tx.go @@ -24,12 +24,12 @@ import ( "sync" "time" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/util/backoff" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/util/backoff" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/datasource/sql/tx_at.go b/pkg/datasource/sql/tx_at.go index 1cae0f77..40c8b7ee 100644 --- a/pkg/datasource/sql/tx_at.go +++ b/pkg/datasource/sql/tx_at.go @@ -20,7 +20,7 @@ package sql import ( "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) // ATTx diff --git a/pkg/datasource/sql/types/executor.go b/pkg/datasource/sql/types/executor.go index 2c03c5b9..3658c3ad 100644 --- a/pkg/datasource/sql/types/executor.go +++ b/pkg/datasource/sql/types/executor.go @@ -23,7 +23,7 @@ import ( "github.com/arana-db/parser/ast" "github.com/arana-db/parser/format" - seatabytes "github.com/seata/seata-go/pkg/util/bytes" + seatabytes "seata.apache.org/seata-go/pkg/util/bytes" ) type ExecutorType int32 diff --git a/pkg/datasource/sql/types/types.go b/pkg/datasource/sql/types/types.go index cfe68615..36b44a2e 100644 --- a/pkg/datasource/sql/types/types.go +++ b/pkg/datasource/sql/types/types.go @@ -24,7 +24,7 @@ import ( "github.com/google/uuid" - "github.com/seata/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/branch" ) type DBType int16 diff --git a/pkg/datasource/sql/undo/base/undo.go b/pkg/datasource/sql/undo/base/undo.go index fb685301..5861012e 100644 --- a/pkg/datasource/sql/undo/base/undo.go +++ b/pkg/datasource/sql/undo/base/undo.go @@ -29,14 +29,14 @@ import ( "github.com/arana-db/parser/mysql" - "github.com/seata/seata-go/pkg/compressor" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/undo/factor" - "github.com/seata/seata-go/pkg/datasource/sql/undo/parser" - "github.com/seata/seata-go/pkg/util/collection" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/compressor" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/factor" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/parser" + "seata.apache.org/seata-go/pkg/util/collection" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/datasource/sql/undo/builder/basic_undo_log_builder.go b/pkg/datasource/sql/undo/builder/basic_undo_log_builder.go index 9c49b3dc..a619c15e 100644 --- a/pkg/datasource/sql/undo/builder/basic_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/basic_undo_log_builder.go @@ -29,7 +29,7 @@ import ( "github.com/arana-db/parser/test_driver" gxsort "github.com/dubbogo/gost/sort" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) // todo the executor should be stateful diff --git a/pkg/datasource/sql/undo/builder/basic_undo_log_builder_test.go b/pkg/datasource/sql/undo/builder/basic_undo_log_builder_test.go index e5a7be13..152c0a47 100644 --- a/pkg/datasource/sql/undo/builder/basic_undo_log_builder_test.go +++ b/pkg/datasource/sql/undo/builder/basic_undo_log_builder_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) func TestBuildWhereConditionByPKs(t *testing.T) { diff --git a/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder.go b/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder.go index e00514a5..22492296 100644 --- a/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder.go @@ -22,16 +22,16 @@ import ( "database/sql/driver" "fmt" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" "github.com/arana-db/parser/ast" "github.com/arana-db/parser/format" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) type MySQLDeleteUndoLogBuilder struct { diff --git a/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder_test.go b/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder_test.go index c05ab127..1dee724a 100644 --- a/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder_test.go +++ b/pkg/datasource/sql/undo/builder/mysql_delete_undo_log_builder_test.go @@ -21,7 +21,7 @@ import ( "database/sql/driver" "testing" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" "github.com/stretchr/testify/assert" ) diff --git a/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder.go b/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder.go index cb177b8e..c837579b 100644 --- a/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder.go @@ -25,10 +25,10 @@ import ( "github.com/arana-db/parser/ast" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/undo/executor" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/executor" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder_test.go b/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder_test.go index 47e6916c..0eac4d40 100644 --- a/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder_test.go +++ b/pkg/datasource/sql/undo/builder/mysql_insert_undo_log_builder_test.go @@ -22,7 +22,7 @@ import ( "database/sql/driver" "testing" - _ "github.com/seata/seata-go/pkg/util/log" + _ "seata.apache.org/seata-go/pkg/util/log" "github.com/arana-db/parser/test_driver" @@ -32,9 +32,9 @@ import ( "github.com/DATA-DOG/go-sqlmock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/mock" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/mock" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) func TestBuildSelectSQLByInsert(t *testing.T) { diff --git a/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder.go b/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder.go index 33fa5fdb..4a23dedd 100644 --- a/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder.go @@ -25,10 +25,10 @@ import ( "github.com/arana-db/parser/ast" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/undo/executor" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/executor" + "seata.apache.org/seata-go/pkg/util/log" ) type MySQLInsertOnDuplicateUndoLogBuilder struct { diff --git a/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder_test.go b/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder_test.go index 89371b73..03e028fe 100644 --- a/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder_test.go +++ b/pkg/datasource/sql/undo/builder/mysql_insertonduplicate_update_undo_log_builder_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) func TestInsertOnDuplicateBuildBeforeImageSQL(t *testing.T) { diff --git a/pkg/datasource/sql/undo/builder/mysql_multi_delete_undo_log_builder.go b/pkg/datasource/sql/undo/builder/mysql_multi_delete_undo_log_builder.go index 91735896..c6ecb1ed 100644 --- a/pkg/datasource/sql/undo/builder/mysql_multi_delete_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/mysql_multi_delete_undo_log_builder.go @@ -26,10 +26,10 @@ import ( "github.com/arana-db/parser/ast" "github.com/arana-db/parser/format" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/util/log" ) type multiDelete struct { diff --git a/pkg/datasource/sql/undo/builder/mysql_multi_undo_log_builder.go b/pkg/datasource/sql/undo/builder/mysql_multi_undo_log_builder.go index c60d54a8..485c4df8 100644 --- a/pkg/datasource/sql/undo/builder/mysql_multi_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/mysql_multi_undo_log_builder.go @@ -20,8 +20,8 @@ package builder import ( "context" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) type MySQLMultiUndoLogBuilder struct { diff --git a/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder.go b/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder.go index 8a0cfd85..57b9f6ca 100644 --- a/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder.go @@ -28,10 +28,10 @@ import ( "github.com/arana-db/parser/format" "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) //func init() { diff --git a/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder_test.go b/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder_test.go index c7821b55..62b2e3de 100644 --- a/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder_test.go +++ b/pkg/datasource/sql/undo/builder/mysql_multi_update_undo_log_builder_test.go @@ -25,8 +25,8 @@ import ( _ "github.com/arana-db/parser/test_driver" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/parser" - _ "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" + _ "seata.apache.org/seata-go/pkg/util/log" ) func TestBuildSelectSQLByMultiUpdate(t *testing.T) { diff --git a/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder.go b/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder.go index 7aebb081..5e46d269 100644 --- a/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder.go +++ b/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder.go @@ -27,12 +27,12 @@ import ( "github.com/arana-db/parser/format" "github.com/arana-db/parser/model" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/util/bytes" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder_test.go b/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder_test.go index 279e8e01..f5b07a45 100644 --- a/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder_test.go +++ b/pkg/datasource/sql/undo/builder/mysql_update_undo_log_builder_test.go @@ -25,17 +25,17 @@ import ( "github.com/agiledragon/gomonkey/v2" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/datasource/mysql" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource/mysql" + "seata.apache.org/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/parser" + "seata.apache.org/seata-go/pkg/datasource/sql/parser" _ "github.com/arana-db/parser/test_driver" "github.com/stretchr/testify/assert" - _ "github.com/seata/seata-go/pkg/util/log" + _ "seata.apache.org/seata-go/pkg/util/log" ) func TestBuildSelectSQLByUpdate(t *testing.T) { diff --git a/pkg/datasource/sql/undo/config.go b/pkg/datasource/sql/undo/config.go index f06324db..2b2200fb 100644 --- a/pkg/datasource/sql/undo/config.go +++ b/pkg/datasource/sql/undo/config.go @@ -20,7 +20,7 @@ package undo import ( "flag" - "github.com/seata/seata-go/pkg/compressor" + "seata.apache.org/seata-go/pkg/compressor" ) var ( diff --git a/pkg/datasource/sql/undo/executor/executor.go b/pkg/datasource/sql/undo/executor/executor.go index 94808a10..f4d9a8bb 100644 --- a/pkg/datasource/sql/undo/executor/executor.go +++ b/pkg/datasource/sql/undo/executor/executor.go @@ -26,10 +26,10 @@ import ( "github.com/goccy/go-json" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/util/log" ) var _ undo.UndoExecutor = (*BaseExecutor)(nil) diff --git a/pkg/datasource/sql/undo/executor/mysql_undo_delete_executor.go b/pkg/datasource/sql/undo/executor/mysql_undo_delete_executor.go index da5536c0..7a392fc9 100644 --- a/pkg/datasource/sql/undo/executor/mysql_undo_delete_executor.go +++ b/pkg/datasource/sql/undo/executor/mysql_undo_delete_executor.go @@ -23,8 +23,8 @@ import ( "fmt" "strings" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) type mySQLUndoDeleteExecutor struct { diff --git a/pkg/datasource/sql/undo/executor/mysql_undo_executor_holder.go b/pkg/datasource/sql/undo/executor/mysql_undo_executor_holder.go index 1b011726..0c6e5d7a 100644 --- a/pkg/datasource/sql/undo/executor/mysql_undo_executor_holder.go +++ b/pkg/datasource/sql/undo/executor/mysql_undo_executor_holder.go @@ -18,7 +18,7 @@ package executor import ( - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) type MySQLUndoExecutorHolder struct { diff --git a/pkg/datasource/sql/undo/executor/mysql_undo_insert_executor.go b/pkg/datasource/sql/undo/executor/mysql_undo_insert_executor.go index 53c90581..108a62e6 100644 --- a/pkg/datasource/sql/undo/executor/mysql_undo_insert_executor.go +++ b/pkg/datasource/sql/undo/executor/mysql_undo_insert_executor.go @@ -22,8 +22,8 @@ import ( "database/sql" "fmt" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) type mySQLUndoInsertExecutor struct { diff --git a/pkg/datasource/sql/undo/executor/mysql_undo_update_executor.go b/pkg/datasource/sql/undo/executor/mysql_undo_update_executor.go index 4c0a3e54..d3561c44 100644 --- a/pkg/datasource/sql/undo/executor/mysql_undo_update_executor.go +++ b/pkg/datasource/sql/undo/executor/mysql_undo_update_executor.go @@ -23,8 +23,8 @@ import ( "fmt" "strings" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) type mySQLUndoUpdateExecutor struct { diff --git a/pkg/datasource/sql/undo/executor/sql.go b/pkg/datasource/sql/undo/executor/sql.go index 25ffabe1..104baced 100644 --- a/pkg/datasource/sql/undo/executor/sql.go +++ b/pkg/datasource/sql/undo/executor/sql.go @@ -21,8 +21,8 @@ import ( "database/sql" "strings" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) const ( diff --git a/pkg/datasource/sql/undo/executor/sql_test.go b/pkg/datasource/sql/undo/executor/sql_test.go index 6acde67a..00aaf7f4 100644 --- a/pkg/datasource/sql/undo/executor/sql_test.go +++ b/pkg/datasource/sql/undo/executor/sql_test.go @@ -21,7 +21,7 @@ import ( "log" "testing" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" "github.com/stretchr/testify/assert" ) diff --git a/pkg/datasource/sql/undo/executor/utils.go b/pkg/datasource/sql/undo/executor/utils.go index 07aba3ab..1f45cc6d 100644 --- a/pkg/datasource/sql/undo/executor/utils.go +++ b/pkg/datasource/sql/undo/executor/utils.go @@ -21,9 +21,9 @@ import ( "fmt" "strings" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/util/log" ) // IsRecordsEquals check before record and after record if equal diff --git a/pkg/datasource/sql/undo/factor/undo_executor_factory.go b/pkg/datasource/sql/undo/factor/undo_executor_factory.go index 2c4111c8..2a943eff 100644 --- a/pkg/datasource/sql/undo/factor/undo_executor_factory.go +++ b/pkg/datasource/sql/undo/factor/undo_executor_factory.go @@ -20,9 +20,9 @@ package factor import ( "fmt" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/util/log" ) func GetUndoExecutor(dbType types.DBType, sqlUndoLog undo.SQLUndoLog) (res undo.UndoExecutor, err error) { diff --git a/pkg/datasource/sql/undo/factor/undo_executor_holder_factor.go b/pkg/datasource/sql/undo/factor/undo_executor_holder_factor.go index 36a8d8d3..4fb1c2ca 100644 --- a/pkg/datasource/sql/undo/factor/undo_executor_holder_factor.go +++ b/pkg/datasource/sql/undo/factor/undo_executor_holder_factor.go @@ -20,9 +20,9 @@ package factor import ( "errors" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/undo/executor" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/executor" ) var undoExecutorHolderMap map[types.DBType]undo.UndoExecutorHolder diff --git a/pkg/datasource/sql/undo/mysql/default.go b/pkg/datasource/sql/undo/mysql/default.go index 14908995..7f0ff329 100644 --- a/pkg/datasource/sql/undo/mysql/default.go +++ b/pkg/datasource/sql/undo/mysql/default.go @@ -20,8 +20,8 @@ package mysql import ( "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/undo/base" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/base" ) func InitUndoLogManager() { diff --git a/pkg/datasource/sql/undo/mysql/undo.go b/pkg/datasource/sql/undo/mysql/undo.go index 1a464549..0d4a2313 100644 --- a/pkg/datasource/sql/undo/mysql/undo.go +++ b/pkg/datasource/sql/undo/mysql/undo.go @@ -22,9 +22,9 @@ import ( "database/sql" "database/sql/driver" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/datasource/sql/undo" - "github.com/seata/seata-go/pkg/datasource/sql/undo/base" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/base" ) var _ undo.UndoLogManager = (*undoLogManager)(nil) diff --git a/pkg/datasource/sql/undo/parser/parser_api.go b/pkg/datasource/sql/undo/parser/parser_api.go index 38ce8e16..7f78103a 100644 --- a/pkg/datasource/sql/undo/parser/parser_api.go +++ b/pkg/datasource/sql/undo/parser/parser_api.go @@ -17,7 +17,7 @@ package parser -import "github.com/seata/seata-go/pkg/datasource/sql/undo" +import "seata.apache.org/seata-go/pkg/datasource/sql/undo" // The interface Undo log parser. type UndoLogParser interface { diff --git a/pkg/datasource/sql/undo/parser/parser_json.go b/pkg/datasource/sql/undo/parser/parser_json.go index e736358b..eff2c7b0 100644 --- a/pkg/datasource/sql/undo/parser/parser_json.go +++ b/pkg/datasource/sql/undo/parser/parser_json.go @@ -20,7 +20,7 @@ package parser import ( "encoding/json" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) type JsonParser struct { diff --git a/pkg/datasource/sql/undo/parser/parser_json_test.go b/pkg/datasource/sql/undo/parser/parser_json_test.go index 88b1ccba..4f73c323 100644 --- a/pkg/datasource/sql/undo/parser/parser_json_test.go +++ b/pkg/datasource/sql/undo/parser/parser_json_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/undo" + "seata.apache.org/seata-go/pkg/datasource/sql/undo" ) func TestGetName(t *testing.T) { diff --git a/pkg/datasource/sql/undo/undo.go b/pkg/datasource/sql/undo/undo.go index 1dc65191..fac3eabb 100644 --- a/pkg/datasource/sql/undo/undo.go +++ b/pkg/datasource/sql/undo/undo.go @@ -24,7 +24,7 @@ import ( "fmt" "sync" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) var ( diff --git a/pkg/datasource/sql/undo/undo_executor.go b/pkg/datasource/sql/undo/undo_executor.go index fea533ef..5a2bea21 100644 --- a/pkg/datasource/sql/undo/undo_executor.go +++ b/pkg/datasource/sql/undo/undo_executor.go @@ -21,7 +21,7 @@ import ( "context" "database/sql" - "github.com/seata/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/datasource/sql/types" ) type UndoExecutor interface { diff --git a/pkg/datasource/sql/undo_test.go b/pkg/datasource/sql/undo_test.go index 457de072..db429d81 100644 --- a/pkg/datasource/sql/undo_test.go +++ b/pkg/datasource/sql/undo_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/datasource/sql/undo/base" - "github.com/seata/seata-go/pkg/datasource/sql/undo/mysql" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/base" + "seata.apache.org/seata-go/pkg/datasource/sql/undo/mysql" ) // TestBatchDeleteUndoLogs diff --git a/pkg/datasource/sql/xa/mysql_xa_connection.go b/pkg/datasource/sql/xa/mysql_xa_connection.go index c2366aea..8a159ee8 100644 --- a/pkg/datasource/sql/xa/mysql_xa_connection.go +++ b/pkg/datasource/sql/xa/mysql_xa_connection.go @@ -26,7 +26,7 @@ import ( "strings" "time" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" ) type MysqlXAConn struct { diff --git a/pkg/datasource/sql/xa/mysql_xa_connection_test.go b/pkg/datasource/sql/xa/mysql_xa_connection_test.go index b897a907..fdecda2c 100644 --- a/pkg/datasource/sql/xa/mysql_xa_connection_test.go +++ b/pkg/datasource/sql/xa/mysql_xa_connection_test.go @@ -28,7 +28,7 @@ import ( "github.com/golang/mock/gomock" - "github.com/seata/seata-go/pkg/datasource/sql/mock" + "seata.apache.org/seata-go/pkg/datasource/sql/mock" ) func TestMysqlXAConn_Commit(t *testing.T) { diff --git a/pkg/datasource/sql/xa/xa_resource_factory.go b/pkg/datasource/sql/xa/xa_resource_factory.go index 1c6bac8d..367921a1 100644 --- a/pkg/datasource/sql/xa/xa_resource_factory.go +++ b/pkg/datasource/sql/xa/xa_resource_factory.go @@ -21,8 +21,8 @@ import ( "database/sql/driver" "fmt" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/util/log" ) // CreateXAResource create a connection for xa with the different db type. diff --git a/pkg/datasource/sql/xa_resource_manager.go b/pkg/datasource/sql/xa_resource_manager.go index 89510e85..96352783 100644 --- a/pkg/datasource/sql/xa_resource_manager.go +++ b/pkg/datasource/sql/xa_resource_manager.go @@ -28,11 +28,11 @@ import ( "github.com/bluele/gcache" - "github.com/seata/seata-go/pkg/datasource/sql/datasource" - "github.com/seata/seata-go/pkg/datasource/sql/types" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/datasource/sql/datasource" + "seata.apache.org/seata-go/pkg/datasource/sql/types" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/util/log" ) var branchStatusCache gcache.Cache diff --git a/pkg/discovery/config.go b/pkg/discovery/config.go index c03c3da1..d8a78874 100644 --- a/pkg/discovery/config.go +++ b/pkg/discovery/config.go @@ -20,7 +20,7 @@ package discovery import ( "flag" - "github.com/seata/seata-go/pkg/util/flagext" + "seata.apache.org/seata-go/pkg/util/flagext" ) type ServiceConfig struct { diff --git a/pkg/discovery/etcd3.go b/pkg/discovery/etcd3.go index 667a8605..14ec3777 100644 --- a/pkg/discovery/etcd3.go +++ b/pkg/discovery/etcd3.go @@ -20,8 +20,8 @@ package discovery import ( "context" "fmt" - "github.com/seata/seata-go/pkg/util/log" etcd3 "go.etcd.io/etcd/client/v3" + "seata.apache.org/seata-go/pkg/util/log" "strconv" "strings" "sync" diff --git a/pkg/discovery/etcd3_test.go b/pkg/discovery/etcd3_test.go index fbde6fb4..131cd0bb 100644 --- a/pkg/discovery/etcd3_test.go +++ b/pkg/discovery/etcd3_test.go @@ -2,11 +2,11 @@ package discovery import ( "github.com/golang/mock/gomock" - "github.com/seata/seata-go/pkg/discovery/mock" "github.com/stretchr/testify/assert" "go.etcd.io/etcd/api/v3/mvccpb" "go.etcd.io/etcd/client/v3" "reflect" + "seata.apache.org/seata-go/pkg/discovery/mock" "testing" "time" ) diff --git a/pkg/discovery/file.go b/pkg/discovery/file.go index aa0b0bad..abc71a37 100644 --- a/pkg/discovery/file.go +++ b/pkg/discovery/file.go @@ -22,7 +22,7 @@ import ( "strconv" "strings" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/integration/dubbo/dubbo_transaction_filter.go b/pkg/integration/dubbo/dubbo_transaction_filter.go index b61c2edf..3ca8a500 100644 --- a/pkg/integration/dubbo/dubbo_transaction_filter.go +++ b/pkg/integration/dubbo/dubbo_transaction_filter.go @@ -26,9 +26,9 @@ import ( "dubbo.apache.org/dubbo-go/v3/filter" "dubbo.apache.org/dubbo-go/v3/protocol" - "github.com/seata/seata-go/pkg/constant" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/constant" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/integration/gin/gin_transaction_middleware.go b/pkg/integration/gin/gin_transaction_middleware.go index d4bb8dd0..8e7df882 100644 --- a/pkg/integration/gin/gin_transaction_middleware.go +++ b/pkg/integration/gin/gin_transaction_middleware.go @@ -22,9 +22,9 @@ import ( "github.com/gin-gonic/gin" - "github.com/seata/seata-go/pkg/constant" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/constant" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) // TransactionMiddleware filter gin invocation diff --git a/pkg/integration/grpc/grpc_transaction_interceptor.go b/pkg/integration/grpc/grpc_transaction_interceptor.go index a6628346..5f4a7280 100644 --- a/pkg/integration/grpc/grpc_transaction_interceptor.go +++ b/pkg/integration/grpc/grpc_transaction_interceptor.go @@ -24,9 +24,9 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/metadata" - "github.com/seata/seata-go/pkg/constant" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/constant" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) // ClientTransactionInterceptor is client interceptor of grpc, diff --git a/pkg/integration/integration.go b/pkg/integration/integration.go index 45c56a02..3bb1c457 100644 --- a/pkg/integration/integration.go +++ b/pkg/integration/integration.go @@ -18,7 +18,7 @@ package integration import ( - "github.com/seata/seata-go/pkg/integration/dubbo" + "seata.apache.org/seata-go/pkg/integration/dubbo" ) func Init() { diff --git a/pkg/protocol/codec/branch_commit_req_codec.go b/pkg/protocol/codec/branch_commit_req_codec.go index 3fa6c0a7..1eb99ca5 100644 --- a/pkg/protocol/codec/branch_commit_req_codec.go +++ b/pkg/protocol/codec/branch_commit_req_codec.go @@ -18,9 +18,9 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type BranchCommitRequestCodec struct{} diff --git a/pkg/protocol/codec/branch_commit_req_codec_test.go b/pkg/protocol/codec/branch_commit_req_codec_test.go index a240f12f..40962c64 100644 --- a/pkg/protocol/codec/branch_commit_req_codec_test.go +++ b/pkg/protocol/codec/branch_commit_req_codec_test.go @@ -20,11 +20,11 @@ package codec import ( "testing" - model2 "github.com/seata/seata-go/pkg/protocol/branch" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestBranchCommitRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/branch_commit_response_codec.go b/pkg/protocol/codec/branch_commit_response_codec.go index 8d43d256..4f9877f2 100644 --- a/pkg/protocol/codec/branch_commit_response_codec.go +++ b/pkg/protocol/codec/branch_commit_response_codec.go @@ -20,11 +20,11 @@ package codec import ( "math" - serror "github.com/seata/seata-go/pkg/util/errors" + serror "seata.apache.org/seata-go/pkg/util/errors" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type BranchCommitResponseCodec struct{} diff --git a/pkg/protocol/codec/branch_commit_response_codec_test.go b/pkg/protocol/codec/branch_commit_response_codec_test.go index 94e0d956..cf9ddb23 100644 --- a/pkg/protocol/codec/branch_commit_response_codec_test.go +++ b/pkg/protocol/codec/branch_commit_response_codec_test.go @@ -22,9 +22,9 @@ import ( "github.com/stretchr/testify/assert" - model2 "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - serror "github.com/seata/seata-go/pkg/util/errors" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + serror "seata.apache.org/seata-go/pkg/util/errors" ) func TestBranchCommitResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/branch_register_req_codec.go b/pkg/protocol/codec/branch_register_req_codec.go index f4a5cb28..e520fffd 100644 --- a/pkg/protocol/codec/branch_register_req_codec.go +++ b/pkg/protocol/codec/branch_register_req_codec.go @@ -18,10 +18,10 @@ package codec import ( - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/util/bytes" - model2 "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" ) type BranchRegisterRequestCodec struct{} diff --git a/pkg/protocol/codec/branch_register_req_codec_test.go b/pkg/protocol/codec/branch_register_req_codec_test.go index b8110e99..7453e768 100644 --- a/pkg/protocol/codec/branch_register_req_codec_test.go +++ b/pkg/protocol/codec/branch_register_req_codec_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestBranchRegisterRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/branch_register_response_codec.go b/pkg/protocol/codec/branch_register_response_codec.go index 8c6d59a0..9cf328cb 100644 --- a/pkg/protocol/codec/branch_register_response_codec.go +++ b/pkg/protocol/codec/branch_register_response_codec.go @@ -20,9 +20,9 @@ package codec import ( "math" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" + serror "seata.apache.org/seata-go/pkg/util/errors" ) type BranchRegisterResponseCodec struct{} diff --git a/pkg/protocol/codec/branch_register_response_codec_test.go b/pkg/protocol/codec/branch_register_response_codec_test.go index 61cf7ad3..634bba13 100644 --- a/pkg/protocol/codec/branch_register_response_codec_test.go +++ b/pkg/protocol/codec/branch_register_response_codec_test.go @@ -20,11 +20,11 @@ package codec import ( "testing" - serror "github.com/seata/seata-go/pkg/util/errors" + serror "seata.apache.org/seata-go/pkg/util/errors" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestBranchRegisterResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/branch_report_req_codec.go b/pkg/protocol/codec/branch_report_req_codec.go index 72664e9d..ef3a93bc 100644 --- a/pkg/protocol/codec/branch_report_req_codec.go +++ b/pkg/protocol/codec/branch_report_req_codec.go @@ -18,9 +18,9 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type BranchReportRequestCodec struct { diff --git a/pkg/protocol/codec/branch_report_req_codec_test.go b/pkg/protocol/codec/branch_report_req_codec_test.go index c696600a..4476c18e 100644 --- a/pkg/protocol/codec/branch_report_req_codec_test.go +++ b/pkg/protocol/codec/branch_report_req_codec_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - model2 "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestBranchReportRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/branch_rollback_req_codec.go b/pkg/protocol/codec/branch_rollback_req_codec.go index 155ea272..0057a6d1 100644 --- a/pkg/protocol/codec/branch_rollback_req_codec.go +++ b/pkg/protocol/codec/branch_rollback_req_codec.go @@ -18,9 +18,9 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type BranchRollbackRequestCodec struct{} diff --git a/pkg/protocol/codec/branch_rollback_req_codec_test.go b/pkg/protocol/codec/branch_rollback_req_codec_test.go index 8da86580..c9a454f3 100644 --- a/pkg/protocol/codec/branch_rollback_req_codec_test.go +++ b/pkg/protocol/codec/branch_rollback_req_codec_test.go @@ -20,11 +20,11 @@ package codec import ( "testing" - model2 "github.com/seata/seata-go/pkg/protocol/branch" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestBranchRollbackRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/branch_rollback_response_codec.go b/pkg/protocol/codec/branch_rollback_response_codec.go index 80daab39..8e9abe0d 100644 --- a/pkg/protocol/codec/branch_rollback_response_codec.go +++ b/pkg/protocol/codec/branch_rollback_response_codec.go @@ -20,10 +20,10 @@ package codec import ( "math" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" + serror "seata.apache.org/seata-go/pkg/util/errors" ) type BranchRollbackResponseCodec struct{} diff --git a/pkg/protocol/codec/branch_rollback_response_codec_test.go b/pkg/protocol/codec/branch_rollback_response_codec_test.go index 588c9dbe..e75fa502 100644 --- a/pkg/protocol/codec/branch_rollback_response_codec_test.go +++ b/pkg/protocol/codec/branch_rollback_response_codec_test.go @@ -20,13 +20,13 @@ package codec import ( "testing" - serror "github.com/seata/seata-go/pkg/util/errors" + serror "seata.apache.org/seata-go/pkg/util/errors" - model2 "github.com/seata/seata-go/pkg/protocol/branch" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestBranchRollbackResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/branch_statue_report_response_codec.go b/pkg/protocol/codec/branch_statue_report_response_codec.go index 0f0ee31c..952b3608 100644 --- a/pkg/protocol/codec/branch_statue_report_response_codec.go +++ b/pkg/protocol/codec/branch_statue_report_response_codec.go @@ -20,9 +20,9 @@ package codec import ( "math" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" + serror "seata.apache.org/seata-go/pkg/util/errors" ) type BranchReportResponseCodec struct{} diff --git a/pkg/protocol/codec/branch_statue_report_response_codec_test.go b/pkg/protocol/codec/branch_statue_report_response_codec_test.go index efb05de5..1786651b 100644 --- a/pkg/protocol/codec/branch_statue_report_response_codec_test.go +++ b/pkg/protocol/codec/branch_statue_report_response_codec_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/message" + serror "seata.apache.org/seata-go/pkg/util/errors" ) func TestBranchReportResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/codec.go b/pkg/protocol/codec/codec.go index 35321e27..a7e9a863 100644 --- a/pkg/protocol/codec/codec.go +++ b/pkg/protocol/codec/codec.go @@ -23,8 +23,8 @@ import ( "vimagination.zapto.org/byteio" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" ) type CodecType byte diff --git a/pkg/protocol/codec/common_global_end_request_codec.go b/pkg/protocol/codec/common_global_end_request_codec.go index 8032f031..d3a36bb4 100644 --- a/pkg/protocol/codec/common_global_end_request_codec.go +++ b/pkg/protocol/codec/common_global_end_request_codec.go @@ -18,8 +18,8 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type CommonGlobalEndRequestCodec struct{} diff --git a/pkg/protocol/codec/common_global_end_response_codec.go b/pkg/protocol/codec/common_global_end_response_codec.go index 323bb47c..def320d9 100644 --- a/pkg/protocol/codec/common_global_end_response_codec.go +++ b/pkg/protocol/codec/common_global_end_response_codec.go @@ -20,9 +20,9 @@ package codec import ( "math" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" + serror "seata.apache.org/seata-go/pkg/util/errors" ) type CommonGlobalEndResponseCodec struct{} diff --git a/pkg/protocol/codec/common_identify_request_codec.go b/pkg/protocol/codec/common_identify_request_codec.go index e1ede16b..331e8c37 100644 --- a/pkg/protocol/codec/common_identify_request_codec.go +++ b/pkg/protocol/codec/common_identify_request_codec.go @@ -18,8 +18,8 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type AbstractIdentifyRequestCodec struct{} diff --git a/pkg/protocol/codec/common_identify_response_codec.go b/pkg/protocol/codec/common_identify_response_codec.go index 5e42a77d..461147ba 100644 --- a/pkg/protocol/codec/common_identify_response_codec.go +++ b/pkg/protocol/codec/common_identify_response_codec.go @@ -18,8 +18,8 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type AbstractIdentifyResponseCodec struct{} diff --git a/pkg/protocol/codec/global_begin_request_codec.go b/pkg/protocol/codec/global_begin_request_codec.go index 902929dd..4af083e7 100644 --- a/pkg/protocol/codec/global_begin_request_codec.go +++ b/pkg/protocol/codec/global_begin_request_codec.go @@ -20,8 +20,8 @@ package codec import ( "time" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type GlobalBeginRequestCodec struct{} diff --git a/pkg/protocol/codec/global_begin_request_codec_test.go b/pkg/protocol/codec/global_begin_request_codec_test.go index d053c01c..f79b3102 100644 --- a/pkg/protocol/codec/global_begin_request_codec_test.go +++ b/pkg/protocol/codec/global_begin_request_codec_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalBeginRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_begin_response_codec.go b/pkg/protocol/codec/global_begin_response_codec.go index d11f6000..9875923a 100644 --- a/pkg/protocol/codec/global_begin_response_codec.go +++ b/pkg/protocol/codec/global_begin_response_codec.go @@ -20,9 +20,9 @@ package codec import ( "math" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" + serror "seata.apache.org/seata-go/pkg/util/errors" ) type GlobalBeginResponseCodec struct{} diff --git a/pkg/protocol/codec/global_begin_response_codec_test.go b/pkg/protocol/codec/global_begin_response_codec_test.go index 3991b6ea..2c4e0d9a 100644 --- a/pkg/protocol/codec/global_begin_response_codec_test.go +++ b/pkg/protocol/codec/global_begin_response_codec_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/message" + serror "seata.apache.org/seata-go/pkg/util/errors" ) func TestGlobalBeginResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_commit_req_codec.go b/pkg/protocol/codec/global_commit_req_codec.go index a2ff7794..323ce695 100644 --- a/pkg/protocol/codec/global_commit_req_codec.go +++ b/pkg/protocol/codec/global_commit_req_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type GlobalCommitRequestCodec struct { diff --git a/pkg/protocol/codec/global_commit_req_codec_test.go b/pkg/protocol/codec/global_commit_req_codec_test.go index 1d643f69..63ae1e3e 100644 --- a/pkg/protocol/codec/global_commit_req_codec_test.go +++ b/pkg/protocol/codec/global_commit_req_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalCommitRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_commit_response_codec.go b/pkg/protocol/codec/global_commit_response_codec.go index 11d17276..dfea2496 100644 --- a/pkg/protocol/codec/global_commit_response_codec.go +++ b/pkg/protocol/codec/global_commit_response_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type GlobalCommitResponseCodec struct { diff --git a/pkg/protocol/codec/global_commit_response_codec_test.go b/pkg/protocol/codec/global_commit_response_codec_test.go index 48d4d05e..16c4b317 100644 --- a/pkg/protocol/codec/global_commit_response_codec_test.go +++ b/pkg/protocol/codec/global_commit_response_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalCommitResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_lock_query_req_codec.go b/pkg/protocol/codec/global_lock_query_req_codec.go index 9e75b6a2..718f4ab6 100644 --- a/pkg/protocol/codec/global_lock_query_req_codec.go +++ b/pkg/protocol/codec/global_lock_query_req_codec.go @@ -18,9 +18,9 @@ package codec import ( - model2 "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type GlobalLockQueryRequestCodec struct { diff --git a/pkg/protocol/codec/global_lock_query_req_codec_test.go b/pkg/protocol/codec/global_lock_query_req_codec_test.go index 391d7ddf..701744aa 100644 --- a/pkg/protocol/codec/global_lock_query_req_codec_test.go +++ b/pkg/protocol/codec/global_lock_query_req_codec_test.go @@ -22,8 +22,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalLockQueryRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_lock_query_resp_codec.go b/pkg/protocol/codec/global_lock_query_resp_codec.go index 7c5d5be1..3255f299 100644 --- a/pkg/protocol/codec/global_lock_query_resp_codec.go +++ b/pkg/protocol/codec/global_lock_query_resp_codec.go @@ -20,9 +20,9 @@ package codec import ( "math" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" - serror "github.com/seata/seata-go/pkg/util/errors" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" + serror "seata.apache.org/seata-go/pkg/util/errors" ) type GlobalLockQueryResponseCodec struct { diff --git a/pkg/protocol/codec/global_lock_query_resp_codec_test.go b/pkg/protocol/codec/global_lock_query_resp_codec_test.go index 0dcac4d1..21a3839b 100644 --- a/pkg/protocol/codec/global_lock_query_resp_codec_test.go +++ b/pkg/protocol/codec/global_lock_query_resp_codec_test.go @@ -20,11 +20,11 @@ package codec import ( "testing" - serror "github.com/seata/seata-go/pkg/util/errors" + serror "seata.apache.org/seata-go/pkg/util/errors" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalLockQueryResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_report_request_codec.go b/pkg/protocol/codec/global_report_request_codec.go index ec045ba8..b261d227 100644 --- a/pkg/protocol/codec/global_report_request_codec.go +++ b/pkg/protocol/codec/global_report_request_codec.go @@ -18,8 +18,8 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type GlobalReportRequestCodec struct { diff --git a/pkg/protocol/codec/global_report_request_codec_test.go b/pkg/protocol/codec/global_report_request_codec_test.go index 1b6d63ea..4406744e 100644 --- a/pkg/protocol/codec/global_report_request_codec_test.go +++ b/pkg/protocol/codec/global_report_request_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalReportRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_report_response_codec.go b/pkg/protocol/codec/global_report_response_codec.go index 6da69835..9b6a4bf7 100644 --- a/pkg/protocol/codec/global_report_response_codec.go +++ b/pkg/protocol/codec/global_report_response_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type GlobalReportResponseCodec struct { diff --git a/pkg/protocol/codec/global_report_response_codec_test.go b/pkg/protocol/codec/global_report_response_codec_test.go index b7a9a2e0..230a5346 100644 --- a/pkg/protocol/codec/global_report_response_codec_test.go +++ b/pkg/protocol/codec/global_report_response_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalReportResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_rollback_req_codec.go b/pkg/protocol/codec/global_rollback_req_codec.go index f37e241c..69e0782d 100644 --- a/pkg/protocol/codec/global_rollback_req_codec.go +++ b/pkg/protocol/codec/global_rollback_req_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type GlobalRollbackRequestCodec struct { diff --git a/pkg/protocol/codec/global_rollback_req_codec_test.go b/pkg/protocol/codec/global_rollback_req_codec_test.go index eac033fa..6d130228 100644 --- a/pkg/protocol/codec/global_rollback_req_codec_test.go +++ b/pkg/protocol/codec/global_rollback_req_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalRollbackRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_rollback_response_codec.go b/pkg/protocol/codec/global_rollback_response_codec.go index acecd43d..e55c10d1 100644 --- a/pkg/protocol/codec/global_rollback_response_codec.go +++ b/pkg/protocol/codec/global_rollback_response_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type GlobalRollbackResponseCodec struct { diff --git a/pkg/protocol/codec/global_rollback_response_codec_test.go b/pkg/protocol/codec/global_rollback_response_codec_test.go index a886af26..ec81f35b 100644 --- a/pkg/protocol/codec/global_rollback_response_codec_test.go +++ b/pkg/protocol/codec/global_rollback_response_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalRollbackResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_status_req_codec.go b/pkg/protocol/codec/global_status_req_codec.go index 483cde6f..2faba24c 100644 --- a/pkg/protocol/codec/global_status_req_codec.go +++ b/pkg/protocol/codec/global_status_req_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type GlobalStatusRequestCodec struct { diff --git a/pkg/protocol/codec/global_status_req_codec_test.go b/pkg/protocol/codec/global_status_req_codec_test.go index b333f429..4c37a46c 100644 --- a/pkg/protocol/codec/global_status_req_codec_test.go +++ b/pkg/protocol/codec/global_status_req_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalStatusRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/global_status_response_codec.go b/pkg/protocol/codec/global_status_response_codec.go index 8f7a8d1e..6ce9702b 100644 --- a/pkg/protocol/codec/global_status_response_codec.go +++ b/pkg/protocol/codec/global_status_response_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type GlobalStatusResponseCodec struct { diff --git a/pkg/protocol/codec/global_status_response_codec_test.go b/pkg/protocol/codec/global_status_response_codec_test.go index 43e80337..5c4adca0 100644 --- a/pkg/protocol/codec/global_status_response_codec_test.go +++ b/pkg/protocol/codec/global_status_response_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGlobalStatusResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/register_rm_request_codec.go b/pkg/protocol/codec/register_rm_request_codec.go index 946088dd..462a664a 100644 --- a/pkg/protocol/codec/register_rm_request_codec.go +++ b/pkg/protocol/codec/register_rm_request_codec.go @@ -18,8 +18,8 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) type RegisterRMRequestCodec struct{} diff --git a/pkg/protocol/codec/register_rm_request_codec_test.go b/pkg/protocol/codec/register_rm_request_codec_test.go index e45fa056..a43d621e 100644 --- a/pkg/protocol/codec/register_rm_request_codec_test.go +++ b/pkg/protocol/codec/register_rm_request_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestRegisterRMRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/register_rm_response_codec.go b/pkg/protocol/codec/register_rm_response_codec.go index 94f45db8..97434db6 100644 --- a/pkg/protocol/codec/register_rm_response_codec.go +++ b/pkg/protocol/codec/register_rm_response_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type RegisterRMResponseCodec struct { diff --git a/pkg/protocol/codec/register_rm_response_codec_test.go b/pkg/protocol/codec/register_rm_response_codec_test.go index f2ea5f2f..2c233e93 100644 --- a/pkg/protocol/codec/register_rm_response_codec_test.go +++ b/pkg/protocol/codec/register_rm_response_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestRegisterRMResponseCodec(t *testing.T) { diff --git a/pkg/protocol/codec/register_tm_request_codec.go b/pkg/protocol/codec/register_tm_request_codec.go index 8ea6e221..71cbf159 100644 --- a/pkg/protocol/codec/register_tm_request_codec.go +++ b/pkg/protocol/codec/register_tm_request_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type RegisterTMRequestCodec struct { diff --git a/pkg/protocol/codec/register_tm_request_codec_test.go b/pkg/protocol/codec/register_tm_request_codec_test.go index a920b3a8..89ddda34 100644 --- a/pkg/protocol/codec/register_tm_request_codec_test.go +++ b/pkg/protocol/codec/register_tm_request_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestRegisterTMRequestCodec(t *testing.T) { diff --git a/pkg/protocol/codec/register_tm_response_codec.go b/pkg/protocol/codec/register_tm_response_codec.go index 5553b995..a6e375fc 100644 --- a/pkg/protocol/codec/register_tm_response_codec.go +++ b/pkg/protocol/codec/register_tm_response_codec.go @@ -18,7 +18,7 @@ package codec import ( - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) type RegisterTMResponseCodec struct { diff --git a/pkg/protocol/codec/register_tm_response_codec_test.go b/pkg/protocol/codec/register_tm_response_codec_test.go index 9d56322f..9397c30b 100644 --- a/pkg/protocol/codec/register_tm_response_codec_test.go +++ b/pkg/protocol/codec/register_tm_response_codec_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestRegisterTMResponseCodec(t *testing.T) { diff --git a/pkg/protocol/message/request_message.go b/pkg/protocol/message/request_message.go index 21c42470..6caf9f39 100644 --- a/pkg/protocol/message/request_message.go +++ b/pkg/protocol/message/request_message.go @@ -20,7 +20,7 @@ package message import ( "time" - model2 "github.com/seata/seata-go/pkg/protocol/branch" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" ) type AbstractBranchEndRequest struct { diff --git a/pkg/protocol/message/response_message.go b/pkg/protocol/message/response_message.go index 1d3aa94d..c7fe021d 100644 --- a/pkg/protocol/message/response_message.go +++ b/pkg/protocol/message/response_message.go @@ -18,8 +18,8 @@ package message import ( - model2 "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/util/errors" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/util/errors" ) type AbstractTransactionResponse struct { diff --git a/pkg/remoting/config/config.go b/pkg/remoting/config/config.go index 5d234d30..5bb12667 100644 --- a/pkg/remoting/config/config.go +++ b/pkg/remoting/config/config.go @@ -21,7 +21,7 @@ import ( "flag" "time" - "github.com/seata/seata-go/pkg/util/flagext" + "seata.apache.org/seata-go/pkg/util/flagext" ) var seataConfig *SeataConfig diff --git a/pkg/remoting/getty/getty_client.go b/pkg/remoting/getty/getty_client.go index 87b84fdc..72874b0f 100644 --- a/pkg/remoting/getty/getty_client.go +++ b/pkg/remoting/getty/getty_client.go @@ -24,9 +24,9 @@ import ( gxtime "github.com/dubbogo/gost/time" "go.uber.org/atomic" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/remoting/getty/getty_client_test.go b/pkg/remoting/getty/getty_client_test.go index 4704cd7e..a5737283 100644 --- a/pkg/remoting/getty/getty_client_test.go +++ b/pkg/remoting/getty/getty_client_test.go @@ -26,9 +26,9 @@ import ( getty "github.com/apache/dubbo-getty" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" ) // TestGettyRemotingClient_SendSyncRequest unit test for SendSyncRequest function diff --git a/pkg/remoting/getty/getty_remoting.go b/pkg/remoting/getty/getty_remoting.go index 772f6720..bd378f64 100644 --- a/pkg/remoting/getty/getty_remoting.go +++ b/pkg/remoting/getty/getty_remoting.go @@ -24,9 +24,9 @@ import ( getty "github.com/apache/dubbo-getty" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/rpc" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/rpc" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/remoting/getty/getty_remoting_test.go b/pkg/remoting/getty/getty_remoting_test.go index 6193185a..8a3e9116 100644 --- a/pkg/remoting/getty/getty_remoting_test.go +++ b/pkg/remoting/getty/getty_remoting_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestGettyRemoting_GetMessageFuture(t *testing.T) { diff --git a/pkg/remoting/getty/listener.go b/pkg/remoting/getty/listener.go index 81890c78..f5ba96ff 100644 --- a/pkg/remoting/getty/listener.go +++ b/pkg/remoting/getty/listener.go @@ -24,12 +24,12 @@ import ( getty "github.com/apache/dubbo-getty" "go.uber.org/atomic" - "github.com/seata/seata-go/pkg/constant" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/config" - "github.com/seata/seata-go/pkg/remoting/processor" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/constant" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/config" + "seata.apache.org/seata-go/pkg/remoting/processor" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/remoting/getty/readwriter.go b/pkg/remoting/getty/readwriter.go index ef5751da..5232315f 100644 --- a/pkg/remoting/getty/readwriter.go +++ b/pkg/remoting/getty/readwriter.go @@ -23,9 +23,9 @@ import ( getty "github.com/apache/dubbo-getty" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/bytes" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/bytes" ) // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 diff --git a/pkg/remoting/getty/readwriter_test.go b/pkg/remoting/getty/readwriter_test.go index e5c13f85..d3795e3a 100644 --- a/pkg/remoting/getty/readwriter_test.go +++ b/pkg/remoting/getty/readwriter_test.go @@ -23,8 +23,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestRpcPackageHandler(t *testing.T) { diff --git a/pkg/remoting/getty/rpc_client.go b/pkg/remoting/getty/rpc_client.go index 7311876b..17b6cec3 100644 --- a/pkg/remoting/getty/rpc_client.go +++ b/pkg/remoting/getty/rpc_client.go @@ -26,10 +26,10 @@ import ( getty "github.com/apache/dubbo-getty" gxsync "github.com/dubbogo/gost/sync" - "github.com/seata/seata-go/pkg/discovery" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/remoting/config" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/discovery" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/remoting/config" + "seata.apache.org/seata-go/pkg/util/log" ) type RpcClient struct { diff --git a/pkg/remoting/getty/session_manager.go b/pkg/remoting/getty/session_manager.go index cf8dba14..6a68cf1b 100644 --- a/pkg/remoting/getty/session_manager.go +++ b/pkg/remoting/getty/session_manager.go @@ -25,9 +25,9 @@ import ( getty "github.com/apache/dubbo-getty" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/config" - "github.com/seata/seata-go/pkg/remoting/loadbalance" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/config" + "seata.apache.org/seata-go/pkg/remoting/loadbalance" ) const ( diff --git a/pkg/remoting/loadbalance/consistent_hash_loadbalance_test.go b/pkg/remoting/loadbalance/consistent_hash_loadbalance_test.go index 3fc5b509..34ca6ee0 100644 --- a/pkg/remoting/loadbalance/consistent_hash_loadbalance_test.go +++ b/pkg/remoting/loadbalance/consistent_hash_loadbalance_test.go @@ -25,7 +25,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/remoting/mock" + "seata.apache.org/seata-go/pkg/remoting/mock" ) func TestConsistentHashLoadBalance(t *testing.T) { diff --git a/pkg/remoting/loadbalance/least_active_loadbalance.go b/pkg/remoting/loadbalance/least_active_loadbalance.go index 50b98f01..dde52a6a 100644 --- a/pkg/remoting/loadbalance/least_active_loadbalance.go +++ b/pkg/remoting/loadbalance/least_active_loadbalance.go @@ -22,7 +22,7 @@ import ( "sync" "time" - "github.com/seata/seata-go/pkg/remoting/rpc" + "seata.apache.org/seata-go/pkg/remoting/rpc" getty "github.com/apache/dubbo-getty" ) diff --git a/pkg/remoting/loadbalance/least_active_loadbalance_test.go b/pkg/remoting/loadbalance/least_active_loadbalance_test.go index a63deb21..b82b13df 100644 --- a/pkg/remoting/loadbalance/least_active_loadbalance_test.go +++ b/pkg/remoting/loadbalance/least_active_loadbalance_test.go @@ -24,9 +24,9 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/seata/seata-go/pkg/remoting/mock" - "github.com/seata/seata-go/pkg/remoting/rpc" "github.com/stretchr/testify/assert" + "seata.apache.org/seata-go/pkg/remoting/mock" + "seata.apache.org/seata-go/pkg/remoting/rpc" ) func TestLeastActiveLoadBalance(t *testing.T) { diff --git a/pkg/remoting/loadbalance/random_loadbalance_test.go b/pkg/remoting/loadbalance/random_loadbalance_test.go index e63a74cb..b6846145 100644 --- a/pkg/remoting/loadbalance/random_loadbalance_test.go +++ b/pkg/remoting/loadbalance/random_loadbalance_test.go @@ -25,7 +25,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/remoting/mock" + "seata.apache.org/seata-go/pkg/remoting/mock" ) func TestRandomLoadBalance_Normal(t *testing.T) { diff --git a/pkg/remoting/loadbalance/round_robin_loadbalance_test.go b/pkg/remoting/loadbalance/round_robin_loadbalance_test.go index c5826570..b54f19f8 100644 --- a/pkg/remoting/loadbalance/round_robin_loadbalance_test.go +++ b/pkg/remoting/loadbalance/round_robin_loadbalance_test.go @@ -26,7 +26,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/remoting/mock" + "seata.apache.org/seata-go/pkg/remoting/mock" ) func TestRoundRobinLoadBalance_Normal(t *testing.T) { diff --git a/pkg/remoting/loadbalance/xid_loadbalance_test.go b/pkg/remoting/loadbalance/xid_loadbalance_test.go index cd47cdd8..db9d58bc 100644 --- a/pkg/remoting/loadbalance/xid_loadbalance_test.go +++ b/pkg/remoting/loadbalance/xid_loadbalance_test.go @@ -24,7 +24,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/remoting/mock" + "seata.apache.org/seata-go/pkg/remoting/mock" ) func TestXidLoadBalance(t *testing.T) { diff --git a/pkg/remoting/processor/client/client_heart_beat_processon.go b/pkg/remoting/processor/client/client_heart_beat_processon.go index 0b40342d..0ba2f58c 100644 --- a/pkg/remoting/processor/client/client_heart_beat_processon.go +++ b/pkg/remoting/processor/client/client_heart_beat_processon.go @@ -20,10 +20,10 @@ package client import ( "context" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/getty" ) func initHeartBeat() { diff --git a/pkg/remoting/processor/client/client_heart_beat_processor_test.go b/pkg/remoting/processor/client/client_heart_beat_processor_test.go index 38c67498..c72d0762 100644 --- a/pkg/remoting/processor/client/client_heart_beat_processor_test.go +++ b/pkg/remoting/processor/client/client_heart_beat_processor_test.go @@ -21,9 +21,9 @@ import ( "context" "testing" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" ) func TestClientHeartBeatProcessor(t *testing.T) { diff --git a/pkg/remoting/processor/client/client_on_response_processor.go b/pkg/remoting/processor/client/client_on_response_processor.go index 780df686..55644b77 100644 --- a/pkg/remoting/processor/client/client_on_response_processor.go +++ b/pkg/remoting/processor/client/client_on_response_processor.go @@ -20,10 +20,10 @@ package client import ( "context" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" - "github.com/seata/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/remoting/getty" ) func initOnResponse() { diff --git a/pkg/remoting/processor/client/client_on_response_processor_test.go b/pkg/remoting/processor/client/client_on_response_processor_test.go index 4d8795dc..2884994d 100644 --- a/pkg/remoting/processor/client/client_on_response_processor_test.go +++ b/pkg/remoting/processor/client/client_on_response_processor_test.go @@ -21,8 +21,8 @@ import ( "context" "testing" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestClientOnResponseProcessor(t *testing.T) { diff --git a/pkg/remoting/processor/client/rm_branch_commit_processor.go b/pkg/remoting/processor/client/rm_branch_commit_processor.go index 86834a57..c36bb329 100644 --- a/pkg/remoting/processor/client/rm_branch_commit_processor.go +++ b/pkg/remoting/processor/client/rm_branch_commit_processor.go @@ -20,11 +20,11 @@ package client import ( "context" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" - "github.com/seata/seata-go/pkg/remoting/getty" - "github.com/seata/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/rm" ) func initBranchCommit() { diff --git a/pkg/remoting/processor/client/rm_branch_commit_processor_test.go b/pkg/remoting/processor/client/rm_branch_commit_processor_test.go index 2eec8be6..296b9392 100644 --- a/pkg/remoting/processor/client/rm_branch_commit_processor_test.go +++ b/pkg/remoting/processor/client/rm_branch_commit_processor_test.go @@ -21,12 +21,12 @@ import ( "context" "testing" - "github.com/seata/seata-go/pkg/rm/tcc" + "seata.apache.org/seata-go/pkg/rm/tcc" - model2 "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/rm" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/rm" ) func TestRmBranchCommitProcessor(t *testing.T) { diff --git a/pkg/remoting/processor/client/rm_branch_rollback_processor.go b/pkg/remoting/processor/client/rm_branch_rollback_processor.go index c1ff4ac1..091f1351 100644 --- a/pkg/remoting/processor/client/rm_branch_rollback_processor.go +++ b/pkg/remoting/processor/client/rm_branch_rollback_processor.go @@ -20,11 +20,11 @@ package client import ( "context" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" - "github.com/seata/seata-go/pkg/remoting/getty" - "github.com/seata/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/rm" ) func initBranchRollback() { diff --git a/pkg/remoting/processor/client/rm_branch_rollback_processor_test.go b/pkg/remoting/processor/client/rm_branch_rollback_processor_test.go index 80d26a7c..9fbd27a9 100644 --- a/pkg/remoting/processor/client/rm_branch_rollback_processor_test.go +++ b/pkg/remoting/processor/client/rm_branch_rollback_processor_test.go @@ -21,12 +21,12 @@ import ( "context" "testing" - "github.com/seata/seata-go/pkg/rm/tcc" + "seata.apache.org/seata-go/pkg/rm/tcc" - model2 "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/codec" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/rm" + model2 "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/codec" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/rm" ) func TestRmBranchRollbackProcessor(t *testing.T) { diff --git a/pkg/remoting/processor/remoting_processor.go b/pkg/remoting/processor/remoting_processor.go index 2878716b..3265ad7f 100644 --- a/pkg/remoting/processor/remoting_processor.go +++ b/pkg/remoting/processor/remoting_processor.go @@ -20,7 +20,7 @@ package processor import ( "context" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) // RemotingProcessor remoting message processor diff --git a/pkg/rm/rm_api.go b/pkg/rm/rm_api.go index 6e5149b6..3083cdff 100644 --- a/pkg/rm/rm_api.go +++ b/pkg/rm/rm_api.go @@ -21,7 +21,7 @@ import ( "context" "sync" - "github.com/seata/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/branch" ) // Resource that can be managed by Resource Manager and involved into global transaction diff --git a/pkg/rm/rm_api_test.go b/pkg/rm/rm_api_test.go index eb824271..bfa2bf68 100644 --- a/pkg/rm/rm_api_test.go +++ b/pkg/rm/rm_api_test.go @@ -24,7 +24,7 @@ import ( "github.com/golang/mock/gomock" - "github.com/seata/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/branch" ) // MockResource is a mock of Resource interface. diff --git a/pkg/rm/rm_cache.go b/pkg/rm/rm_cache.go index 99f25e17..5c7e097d 100644 --- a/pkg/rm/rm_cache.go +++ b/pkg/rm/rm_cache.go @@ -21,7 +21,7 @@ import ( "fmt" "sync" - "github.com/seata/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/branch" ) var ( diff --git a/pkg/rm/rm_cache_test.go b/pkg/rm/rm_cache_test.go index d5c8e63d..dad8a595 100644 --- a/pkg/rm/rm_cache_test.go +++ b/pkg/rm/rm_cache_test.go @@ -23,7 +23,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/branch" ) func TestGetRmCacheInstance(t *testing.T) { diff --git a/pkg/rm/rm_remoting.go b/pkg/rm/rm_remoting.go index 1479e93f..67522501 100644 --- a/pkg/rm/rm_remoting.go +++ b/pkg/rm/rm_remoting.go @@ -23,9 +23,9 @@ import ( "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/getty" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/rm/tcc/config.go b/pkg/rm/tcc/config.go index 95b05be9..25fe1226 100644 --- a/pkg/rm/tcc/config.go +++ b/pkg/rm/tcc/config.go @@ -20,7 +20,7 @@ package tcc import ( "flag" - "github.com/seata/seata-go/pkg/rm/tcc/fence" + "seata.apache.org/seata-go/pkg/rm/tcc/fence" ) type Config struct { diff --git a/pkg/rm/tcc/fence/config/tcc_fence_config.go b/pkg/rm/tcc/fence/config/tcc_fence_config.go index d66f167e..1cc516a7 100644 --- a/pkg/rm/tcc/fence/config/tcc_fence_config.go +++ b/pkg/rm/tcc/fence/config/tcc_fence_config.go @@ -20,7 +20,7 @@ package config import ( "go.uber.org/atomic" - "github.com/seata/seata-go/pkg/rm/tcc/fence/handler" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/handler" ) type TccFenceConfig struct { diff --git a/pkg/rm/tcc/fence/fence_api.go b/pkg/rm/tcc/fence/fence_api.go index 7d5a3ecc..501a3733 100644 --- a/pkg/rm/tcc/fence/fence_api.go +++ b/pkg/rm/tcc/fence/fence_api.go @@ -22,9 +22,9 @@ import ( "database/sql" "fmt" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/rm/tcc/fence/handler" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/handler" + "seata.apache.org/seata-go/pkg/tm" ) // WithFence Execute the fence database operation first and then call back the business method diff --git a/pkg/rm/tcc/fence/fence_api_test.go b/pkg/rm/tcc/fence/fence_api_test.go index 5567f5d7..5c635f53 100644 --- a/pkg/rm/tcc/fence/fence_api_test.go +++ b/pkg/rm/tcc/fence/fence_api_test.go @@ -22,9 +22,9 @@ import ( "database/sql" "testing" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" "github.com/DATA-DOG/go-sqlmock" "github.com/stretchr/testify/assert" diff --git a/pkg/rm/tcc/fence/fence_driver.go b/pkg/rm/tcc/fence/fence_driver.go index cd886587..07cccb91 100644 --- a/pkg/rm/tcc/fence/fence_driver.go +++ b/pkg/rm/tcc/fence/fence_driver.go @@ -25,7 +25,7 @@ import ( "github.com/go-sql-driver/mysql" "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" ) const ( diff --git a/pkg/rm/tcc/fence/fence_driver_conn.go b/pkg/rm/tcc/fence/fence_driver_conn.go index 28dfe7c8..6c051e94 100644 --- a/pkg/rm/tcc/fence/fence_driver_conn.go +++ b/pkg/rm/tcc/fence/fence_driver_conn.go @@ -24,8 +24,8 @@ import ( "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) type FenceConn struct { diff --git a/pkg/rm/tcc/fence/fence_driver_tx.go b/pkg/rm/tcc/fence/fence_driver_tx.go index f828c6ac..5ad1dee3 100644 --- a/pkg/rm/tcc/fence/fence_driver_tx.go +++ b/pkg/rm/tcc/fence/fence_driver_tx.go @@ -22,7 +22,7 @@ import ( "database/sql" "database/sql/driver" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/tm" ) type FenceTx struct { diff --git a/pkg/rm/tcc/fence/handler/tcc_fence_wrapper_handler.go b/pkg/rm/tcc/fence/handler/tcc_fence_wrapper_handler.go index 5a0854d9..d719f01e 100644 --- a/pkg/rm/tcc/fence/handler/tcc_fence_wrapper_handler.go +++ b/pkg/rm/tcc/fence/handler/tcc_fence_wrapper_handler.go @@ -28,11 +28,11 @@ import ( "github.com/go-sql-driver/mysql" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/rm/tcc/fence/store/db/dao" - "github.com/seata/seata-go/pkg/rm/tcc/fence/store/db/model" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/store/db/dao" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/store/db/model" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) type tccFenceWrapperHandler struct { diff --git a/pkg/rm/tcc/fence/store/db/dao/store_api.go b/pkg/rm/tcc/fence/store/db/dao/store_api.go index e292c671..7029daf0 100644 --- a/pkg/rm/tcc/fence/store/db/dao/store_api.go +++ b/pkg/rm/tcc/fence/store/db/dao/store_api.go @@ -21,9 +21,9 @@ import ( "database/sql" "time" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/rm/tcc/fence/store/db/model" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/store/db/model" ) // The TCC Fence Store diff --git a/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db.go b/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db.go index c2627707..5da7ad7a 100644 --- a/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db.go +++ b/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db.go @@ -26,9 +26,9 @@ import ( "github.com/go-sql-driver/mysql" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/rm/tcc/fence/store/db/model" - sql2 "github.com/seata/seata-go/pkg/rm/tcc/fence/store/db/sql" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/store/db/model" + sql2 "seata.apache.org/seata-go/pkg/rm/tcc/fence/store/db/sql" ) var ( diff --git a/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db_test.go b/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db_test.go index 87c53293..3cd9056a 100644 --- a/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db_test.go +++ b/pkg/rm/tcc/fence/store/db/dao/tcc_fence_db_test.go @@ -30,9 +30,9 @@ import ( _ "github.com/go-sql-driver/mysql" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/rm/tcc/fence/store/db/model" - sql2 "github.com/seata/seata-go/pkg/rm/tcc/fence/store/db/sql" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/store/db/model" + sql2 "seata.apache.org/seata-go/pkg/rm/tcc/fence/store/db/sql" ) func TestTccFenceStoreDatabaseMapper_SetLogTableName(t *testing.T) { diff --git a/pkg/rm/tcc/fence/store/db/model/tcc_fence_do.go b/pkg/rm/tcc/fence/store/db/model/tcc_fence_do.go index 9347a1c7..68a02a2e 100644 --- a/pkg/rm/tcc/fence/store/db/model/tcc_fence_do.go +++ b/pkg/rm/tcc/fence/store/db/model/tcc_fence_do.go @@ -20,7 +20,7 @@ package model import ( "time" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" ) type TCCFenceDO struct { diff --git a/pkg/rm/tcc/fence/store/db/sql/tcc_fence_store_sql.go b/pkg/rm/tcc/fence/store/db/sql/tcc_fence_store_sql.go index 76722bac..e4889497 100644 --- a/pkg/rm/tcc/fence/store/db/sql/tcc_fence_store_sql.go +++ b/pkg/rm/tcc/fence/store/db/sql/tcc_fence_store_sql.go @@ -21,7 +21,7 @@ import ( "fmt" "strconv" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" ) var ( diff --git a/pkg/rm/tcc/tcc_resource.go b/pkg/rm/tcc/tcc_resource.go index e21ca24a..8edec1d0 100644 --- a/pkg/rm/tcc/tcc_resource.go +++ b/pkg/rm/tcc/tcc_resource.go @@ -23,12 +23,12 @@ import ( "fmt" "sync" - "github.com/seata/seata-go/pkg/constant" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/constant" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/rm/tcc/tcc_resource_test.go b/pkg/rm/tcc/tcc_resource_test.go index 051d1aa7..498a06f6 100644 --- a/pkg/rm/tcc/tcc_resource_test.go +++ b/pkg/rm/tcc/tcc_resource_test.go @@ -25,10 +25,10 @@ import ( "github.com/agiledragon/gomonkey/v2" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/getty" - "github.com/seata/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/rm" "github.com/stretchr/testify/assert" ) diff --git a/pkg/rm/tcc/tcc_service.go b/pkg/rm/tcc/tcc_service.go index c6561038..ffedff1e 100644 --- a/pkg/rm/tcc/tcc_service.go +++ b/pkg/rm/tcc/tcc_service.go @@ -27,13 +27,13 @@ import ( gostnet "github.com/dubbogo/gost/net" - "github.com/seata/seata-go/pkg/constant" - "github.com/seata/seata-go/pkg/protocol/branch" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" - "github.com/seata/seata-go/pkg/util/reflectx" + "seata.apache.org/seata-go/pkg/constant" + "seata.apache.org/seata-go/pkg/protocol/branch" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/reflectx" ) type TCCServiceProxy struct { diff --git a/pkg/rm/tcc/tcc_service_test.go b/pkg/rm/tcc/tcc_service_test.go index 34b0c0dd..20ca57c6 100644 --- a/pkg/rm/tcc/tcc_service_test.go +++ b/pkg/rm/tcc/tcc_service_test.go @@ -31,14 +31,14 @@ import ( gostnet "github.com/dubbogo/gost/net" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/constant" + "seata.apache.org/seata-go/pkg/constant" - "github.com/seata/seata-go/pkg/rm" - "github.com/seata/seata-go/pkg/tm" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/rm" + "seata.apache.org/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/util/log" - //"github.com/seata/seata-go/sample/tcc/dubbo/client/service" - testdata2 "github.com/seata/seata-go/testdata" + //"github.com/apache/seata-go/sample/tcc/dubbo/client/service" + testdata2 "seata.apache.org/seata-go/testdata" ) var ( diff --git a/pkg/rm/two_phase.go b/pkg/rm/two_phase.go index 05c3e6e3..cc7d03b3 100644 --- a/pkg/rm/two_phase.go +++ b/pkg/rm/two_phase.go @@ -22,7 +22,7 @@ import ( "fmt" "reflect" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/tm" ) const ( diff --git a/pkg/rm/two_phase_test.go b/pkg/rm/two_phase_test.go index 8e2f1960..a7534b13 100644 --- a/pkg/rm/two_phase_test.go +++ b/pkg/rm/two_phase_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/tm" - testdata2 "github.com/seata/seata-go/testdata" + "seata.apache.org/seata-go/pkg/tm" + testdata2 "seata.apache.org/seata-go/testdata" ) var UserProviderInstance = NewTwoPhaseDemoService() diff --git a/pkg/tm/constant.go b/pkg/tm/constant.go index 60030b7a..beb7277c 100644 --- a/pkg/tm/constant.go +++ b/pkg/tm/constant.go @@ -17,7 +17,7 @@ package tm -import "github.com/seata/seata-go/pkg/protocol/message" +import "seata.apache.org/seata-go/pkg/protocol/message" type TransactionManager interface { // Begin a new global transaction. diff --git a/pkg/tm/context.go b/pkg/tm/context.go index ea1c9905..aede33df 100644 --- a/pkg/tm/context.go +++ b/pkg/tm/context.go @@ -20,8 +20,8 @@ package tm import ( "context" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" ) type ContextParam string diff --git a/pkg/tm/context_test.go b/pkg/tm/context_test.go index 0b6235e8..6bcb9397 100644 --- a/pkg/tm/context_test.go +++ b/pkg/tm/context_test.go @@ -23,8 +23,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/rm/tcc/fence/enum" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/rm/tcc/fence/enum" ) func TestInitSeataContext(t *testing.T) { diff --git a/pkg/tm/global_transaction.go b/pkg/tm/global_transaction.go index efbe8a4a..3984bdd0 100644 --- a/pkg/tm/global_transaction.go +++ b/pkg/tm/global_transaction.go @@ -25,10 +25,10 @@ import ( "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/getty" - "github.com/seata/seata-go/pkg/util/backoff" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/util/backoff" + "seata.apache.org/seata-go/pkg/util/log" ) var ( diff --git a/pkg/tm/global_transaction_test.go b/pkg/tm/global_transaction_test.go index 4252520b..f790cd22 100644 --- a/pkg/tm/global_transaction_test.go +++ b/pkg/tm/global_transaction_test.go @@ -28,10 +28,10 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/remoting/getty" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/remoting/getty" ) func TestBegin(t *testing.T) { diff --git a/pkg/tm/transaction_executor.go b/pkg/tm/transaction_executor.go index 22b662eb..6f376210 100644 --- a/pkg/tm/transaction_executor.go +++ b/pkg/tm/transaction_executor.go @@ -24,8 +24,8 @@ import ( "github.com/pkg/errors" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/util/log" ) type GtxConfig struct { diff --git a/pkg/tm/transaction_executor_test.go b/pkg/tm/transaction_executor_test.go index f0e513ad..8fe541c1 100644 --- a/pkg/tm/transaction_executor_test.go +++ b/pkg/tm/transaction_executor_test.go @@ -29,7 +29,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/seata/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/protocol/message" ) func TestTransactionExecutorBegin(t *testing.T) { diff --git a/pkg/util/flagext/deprecated.go b/pkg/util/flagext/deprecated.go index 66ce8625..84cdfd69 100644 --- a/pkg/util/flagext/deprecated.go +++ b/pkg/util/flagext/deprecated.go @@ -23,7 +23,7 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" - "github.com/seata/seata-go/pkg/util/log" + "seata.apache.org/seata-go/pkg/util/log" ) // DeprecatedFlagsUsed is the metric that counts deprecated flags set. diff --git a/testdata/context.go b/testdata/context.go index 4d72d110..6153aab7 100644 --- a/testdata/context.go +++ b/testdata/context.go @@ -20,8 +20,8 @@ package testdata import ( "context" - "github.com/seata/seata-go/pkg/protocol/message" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/protocol/message" + "seata.apache.org/seata-go/pkg/tm" ) const ( diff --git a/testdata/mock_tcc.go b/testdata/mock_tcc.go index 184cb5b3..e216d99b 100644 --- a/testdata/mock_tcc.go +++ b/testdata/mock_tcc.go @@ -20,7 +20,7 @@ package testdata import ( "context" - "github.com/seata/seata-go/pkg/tm" + "seata.apache.org/seata-go/pkg/tm" ) const (