This is an automated email from the ASF dual-hosted git repository. maxyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry-go-libs.git
The following commit(s) were added to refs/heads/main by this push: new fc376e8 refactor: Rename module to apache/cloudberry-go-libs fc376e8 is described below commit fc376e8a1056f2452942bacc9b1b57edde8d4e3d Author: Robert Mu <db...@hotmail.com> AuthorDate: Mon Sep 8 11:41:18 2025 +0800 refactor: Rename module to apache/cloudberry-go-libs --- CONTRIBUTING.md | 6 ++++-- ci/pipeline.yml | 12 ++++++------ cluster/cluster.go | 6 +++--- cluster/cluster_test.go | 8 ++++---- conv/float_test.go | 2 +- conv/int_test.go | 2 +- conv/md5_test.go | 2 +- conv/uint_test.go | 2 +- dbconn/dbconn.go | 4 ++-- dbconn/dbconn_test.go | 6 +++--- dbconn/version.go | 2 +- dbconn/version_test.go | 2 +- go.mod | 2 +- gperror/gperror_test.go | 2 +- gplog/gplog.go | 2 +- gplog/gplog_test.go | 6 +++--- iohelper/iohelper.go | 4 ++-- iohelper/iohelper_test.go | 6 +++--- show_coverage.sh | 2 +- structmatcher/structmatcher_test.go | 2 +- testhelper/functions.go | 6 +++--- testhelper/structs.go | 7 ++++--- 22 files changed, 48 insertions(+), 45 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7259845..882aebb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,13 +25,13 @@ Some behaviors that contribute to creating a positive environment include: 2. Clone down the repo to your local system. ``` -git clone https://github.com/your-user-name/gp-common-go-libs.git +git clone https://github.com/your-user-name/cloudberry-go-libs.git ``` 3. Add the upstream repo. (You only have to do this once, not every time.) ``` -git remote add upstream https://github.com/cloudberrydb/gp-common-go-libs.git +git remote add upstream https://github.com/apache/cloudberry-go-libs.git ``` 4. Create a new branch to hold your work. @@ -75,3 +75,5 @@ git checkout main git fetch upstream git rebase upstream/main ``` + +``` diff --git a/ci/pipeline.yml b/ci/pipeline.yml index dec0dd2..c99e9ea 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -1,16 +1,16 @@ --- resources: -- name: gp-common-go-libs +- name: cloudberry-go-libs type: git source: - uri: https://github.com/cloudberrydb/gp-common-go-libs + uri: https://github.com/apache/cloudberry-go-libs branch: ((branch)) jobs: - name: unit-tests plan: - in_parallel: - - get: gp-common-go-libs + - get: cloudberry-go-libs trigger: true - task: unit-tests config: @@ -21,8 +21,8 @@ jobs: repository: golang tag: ((golang-version))-buster inputs: - - name: gp-common-go-libs - path: go/src/github.com/cloudberrydb/gp-common-go-libs + - name: cloudberry-go-libs + path: go/src/github.com/apache/cloudberry-go-libs run: path: bash args: @@ -31,5 +31,5 @@ jobs: set -ex export GOPATH=$PWD/go export PATH=$GOPATH/bin:$PATH - cd $GOPATH/src/github.com/cloudberrydb/gp-common-go-libs + cd $GOPATH/src/github.com/apache/cloudberry-go-libs make depend unit diff --git a/cluster/cluster.go b/cluster/cluster.go index fbc1386..0c0422e 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -19,9 +19,9 @@ import ( "strings" "time" - "github.com/cloudberrydb/gp-common-go-libs/dbconn" - "github.com/cloudberrydb/gp-common-go-libs/gplog" - "github.com/cloudberrydb/gp-common-go-libs/operating" + "github.com/apache/cloudberry-go-libs/dbconn" + "github.com/apache/cloudberry-go-libs/gplog" + "github.com/apache/cloudberry-go-libs/operating" "github.com/pkg/errors" ) diff --git a/cluster/cluster_test.go b/cluster/cluster_test.go index 959b373..4e612e6 100644 --- a/cluster/cluster_test.go +++ b/cluster/cluster_test.go @@ -12,10 +12,10 @@ import ( "time" "github.com/DATA-DOG/go-sqlmock" - "github.com/cloudberrydb/gp-common-go-libs/cluster" - "github.com/cloudberrydb/gp-common-go-libs/dbconn" - "github.com/cloudberrydb/gp-common-go-libs/operating" - "github.com/cloudberrydb/gp-common-go-libs/testhelper" + "github.com/apache/cloudberry-go-libs/cluster" + "github.com/apache/cloudberry-go-libs/dbconn" + "github.com/apache/cloudberry-go-libs/operating" + "github.com/apache/cloudberry-go-libs/testhelper" "github.com/onsi/gomega/gbytes" "github.com/pkg/errors" diff --git a/conv/float_test.go b/conv/float_test.go index ea73862..cf5b280 100644 --- a/conv/float_test.go +++ b/conv/float_test.go @@ -5,7 +5,7 @@ import ( "strconv" "testing" - . "github.com/cloudberrydb/gp-common-go-libs/conv" + . "github.com/apache/cloudberry-go-libs/conv" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) diff --git a/conv/int_test.go b/conv/int_test.go index 14d34f9..38601b9 100644 --- a/conv/int_test.go +++ b/conv/int_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - . "github.com/cloudberrydb/gp-common-go-libs/conv" + . "github.com/apache/cloudberry-go-libs/conv" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) diff --git a/conv/md5_test.go b/conv/md5_test.go index 4c52f0d..9045a21 100644 --- a/conv/md5_test.go +++ b/conv/md5_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - . "github.com/cloudberrydb/gp-common-go-libs/conv" + . "github.com/apache/cloudberry-go-libs/conv" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) diff --git a/conv/uint_test.go b/conv/uint_test.go index 696b554..775b848 100644 --- a/conv/uint_test.go +++ b/conv/uint_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - . "github.com/cloudberrydb/gp-common-go-libs/conv" + . "github.com/apache/cloudberry-go-libs/conv" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) diff --git a/dbconn/dbconn.go b/dbconn/dbconn.go index 91f5efa..b80b6f6 100644 --- a/dbconn/dbconn.go +++ b/dbconn/dbconn.go @@ -12,8 +12,8 @@ import ( "strconv" "strings" - "github.com/cloudberrydb/gp-common-go-libs/gplog" - "github.com/cloudberrydb/gp-common-go-libs/operating" + "github.com/apache/cloudberry-go-libs/gplog" + "github.com/apache/cloudberry-go-libs/operating" /* * We previously used github.com/lib/pq as our Postgres driver, diff --git a/dbconn/dbconn_test.go b/dbconn/dbconn_test.go index c08e33c..5f1c22a 100644 --- a/dbconn/dbconn_test.go +++ b/dbconn/dbconn_test.go @@ -9,9 +9,9 @@ import ( "time" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/cloudberrydb/gp-common-go-libs/dbconn" - "github.com/cloudberrydb/gp-common-go-libs/operating" - "github.com/cloudberrydb/gp-common-go-libs/testhelper" + "github.com/apache/cloudberry-go-libs/dbconn" + "github.com/apache/cloudberry-go-libs/operating" + "github.com/apache/cloudberry-go-libs/testhelper" "github.com/jmoiron/sqlx" . "github.com/onsi/ginkgo/v2" diff --git a/dbconn/version.go b/dbconn/version.go index e51b8e1..9d00140 100644 --- a/dbconn/version.go +++ b/dbconn/version.go @@ -4,8 +4,8 @@ import ( "regexp" "strings" + "github.com/apache/cloudberry-go-libs/gplog" "github.com/blang/semver" - "github.com/cloudberrydb/gp-common-go-libs/gplog" ) // DBType represents the type of database diff --git a/dbconn/version_test.go b/dbconn/version_test.go index 9037fa8..59fcbe9 100644 --- a/dbconn/version_test.go +++ b/dbconn/version_test.go @@ -1,8 +1,8 @@ package dbconn_test import ( + "github.com/apache/cloudberry-go-libs/dbconn" "github.com/blang/semver" - "github.com/cloudberrydb/gp-common-go-libs/dbconn" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/go.mod b/go.mod index 097a63a..9a19bc9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/cloudberrydb/gp-common-go-libs +module github.com/apache/cloudberry-go-libs go 1.21 diff --git a/gperror/gperror_test.go b/gperror/gperror_test.go index dbc78ab..d393424 100644 --- a/gperror/gperror_test.go +++ b/gperror/gperror_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - "github.com/cloudberrydb/gp-common-go-libs/gperror" + "github.com/apache/cloudberry-go-libs/gperror" ) func TestGpError(t *testing.T) { diff --git a/gplog/gplog.go b/gplog/gplog.go index 1b53a13..4a6f08d 100644 --- a/gplog/gplog.go +++ b/gplog/gplog.go @@ -13,7 +13,7 @@ import ( "strings" "sync" - "github.com/cloudberrydb/gp-common-go-libs/operating" + "github.com/apache/cloudberry-go-libs/operating" "github.com/pkg/errors" ) diff --git a/gplog/gplog_test.go b/gplog/gplog_test.go index 0fc4ba9..a46507b 100644 --- a/gplog/gplog_test.go +++ b/gplog/gplog_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/cloudberrydb/gp-common-go-libs/gplog" - "github.com/cloudberrydb/gp-common-go-libs/operating" - "github.com/cloudberrydb/gp-common-go-libs/testhelper" + "github.com/apache/cloudberry-go-libs/gplog" + "github.com/apache/cloudberry-go-libs/operating" + "github.com/apache/cloudberry-go-libs/testhelper" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" diff --git a/iohelper/iohelper.go b/iohelper/iohelper.go index a32ffa7..9e3ac29 100644 --- a/iohelper/iohelper.go +++ b/iohelper/iohelper.go @@ -11,8 +11,8 @@ import ( "io" "os" - "github.com/cloudberrydb/gp-common-go-libs/gplog" - "github.com/cloudberrydb/gp-common-go-libs/operating" + "github.com/apache/cloudberry-go-libs/gplog" + "github.com/apache/cloudberry-go-libs/operating" "github.com/pkg/errors" ) diff --git a/iohelper/iohelper_test.go b/iohelper/iohelper_test.go index b745579..a55c3d4 100644 --- a/iohelper/iohelper_test.go +++ b/iohelper/iohelper_test.go @@ -6,9 +6,9 @@ import ( "os" "testing" - "github.com/cloudberrydb/gp-common-go-libs/iohelper" - "github.com/cloudberrydb/gp-common-go-libs/operating" - "github.com/cloudberrydb/gp-common-go-libs/testhelper" + "github.com/apache/cloudberry-go-libs/iohelper" + "github.com/apache/cloudberry-go-libs/operating" + "github.com/apache/cloudberry-go-libs/testhelper" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/show_coverage.sh b/show_coverage.sh index de14d0c..ee57bf5 100755 --- a/show_coverage.sh +++ b/show_coverage.sh @@ -1,6 +1,6 @@ #!/bin/bash -DIR="github.com/cloudberrydb/gp-common-go-libs" +DIR="github.com/apache/cloudberry-go-libs" RESULTS="/tmp/results.out" echo "mode: set" > /tmp/coverage.out # Need this line at the start of the file for the total coverage at the end for PACKAGE in "cluster" "conv" "dbconn" "gperror" "gplog" "iohelper" "structmatcher"; do diff --git a/structmatcher/structmatcher_test.go b/structmatcher/structmatcher_test.go index e284785..f2eb5c4 100644 --- a/structmatcher/structmatcher_test.go +++ b/structmatcher/structmatcher_test.go @@ -1,7 +1,7 @@ package structmatcher_test import ( - "github.com/cloudberrydb/gp-common-go-libs/structmatcher" + "github.com/apache/cloudberry-go-libs/structmatcher" "testing" diff --git a/testhelper/functions.go b/testhelper/functions.go index c41c665..1984e67 100644 --- a/testhelper/functions.go +++ b/testhelper/functions.go @@ -7,9 +7,9 @@ import ( "strings" sqlmock "github.com/DATA-DOG/go-sqlmock" - "github.com/cloudberrydb/gp-common-go-libs/dbconn" - "github.com/cloudberrydb/gp-common-go-libs/gplog" - "github.com/cloudberrydb/gp-common-go-libs/operating" + "github.com/apache/cloudberry-go-libs/dbconn" + "github.com/apache/cloudberry-go-libs/gplog" + "github.com/apache/cloudberry-go-libs/operating" "github.com/jmoiron/sqlx" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" diff --git a/testhelper/structs.go b/testhelper/structs.go index 6a00eec..f642c66 100644 --- a/testhelper/structs.go +++ b/testhelper/structs.go @@ -6,10 +6,11 @@ package testhelper import ( "context" - "github.com/cloudberrydb/gp-common-go-libs/cluster" - "github.com/cloudberrydb/gp-common-go-libs/gplog" - "github.com/jmoiron/sqlx" "time" + + "github.com/apache/cloudberry-go-libs/cluster" + "github.com/apache/cloudberry-go-libs/gplog" + "github.com/jmoiron/sqlx" ) type TestDriver struct { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org For additional commands, e-mail: commits-h...@cloudberry.apache.org