From 408a09e1fb2c8c43128dd31ed8a806fc48c793b8 Mon Sep 17 00:00:00 2001 From: Thiyagu55 <64461612+Thiyagu55@users.noreply.github.com> Date: Fri, 30 Sep 2022 19:58:28 +0530 Subject: [PATCH] Updating module name of go-sql to github.com/google/sqlcommenter/go/database/sql (#166) --- .github/workflows/go-sql-tests.yaml | 4 ++-- go/{go-sql => database/sql}/README.md | 0 go/{go-sql => database/sql}/go-sql.go | 2 +- go/{go-sql => database/sql}/go-sql_test.go | 2 +- go/{go-sql => database/sql}/go.mod | 8 +++++--- go/{go-sql => database/sql}/go.sum | 0 6 files changed, 9 insertions(+), 7 deletions(-) rename go/{go-sql => database/sql}/README.md (100%) rename go/{go-sql => database/sql}/go-sql.go (99%) rename go/{go-sql => database/sql}/go-sql_test.go (99%) rename go/{go-sql => database/sql}/go.mod (74%) rename go/{go-sql => database/sql}/go.sum (100%) diff --git a/.github/workflows/go-sql-tests.yaml b/.github/workflows/go-sql-tests.yaml index e71b3e6b..5f081e3a 100644 --- a/.github/workflows/go-sql-tests.yaml +++ b/.github/workflows/go-sql-tests.yaml @@ -23,11 +23,11 @@ jobs: - name: Build run: go build -v ./... - working-directory: ./go/go-sql + working-directory: ./go/database/sql - name: Test go-sql run: go test -v ./... - working-directory: ./go/go-sql + working-directory: ./go/database/sql gofmt: runs-on: ubuntu-latest diff --git a/go/go-sql/README.md b/go/database/sql/README.md similarity index 100% rename from go/go-sql/README.md rename to go/database/sql/README.md diff --git a/go/go-sql/go-sql.go b/go/database/sql/go-sql.go similarity index 99% rename from go/go-sql/go-sql.go rename to go/database/sql/go-sql.go index f4aae1b9..9742f24e 100644 --- a/go/go-sql/go-sql.go +++ b/go/database/sql/go-sql.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package gosql +package sql import ( "context" diff --git a/go/go-sql/go-sql_test.go b/go/database/sql/go-sql_test.go similarity index 99% rename from go/go-sql/go-sql_test.go rename to go/database/sql/go-sql_test.go index fedbb7f6..78c1d5bf 100644 --- a/go/go-sql/go-sql_test.go +++ b/go/database/sql/go-sql_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package gosql +package sql import ( "context" diff --git a/go/go-sql/go.mod b/go/database/sql/go.mod similarity index 74% rename from go/go-sql/go.mod rename to go/database/sql/go.mod index 060407c1..681d531f 100644 --- a/go/go-sql/go.mod +++ b/go/database/sql/go.mod @@ -1,13 +1,15 @@ -module google.com/sqlcommenter/gosql +module github.com/google/sqlcommenter/go/database/sql go 1.19 -require go.opentelemetry.io/otel/sdk v1.10.0 +require ( + github.com/google/sqlcommenter/go/core v0.0.1-beta + go.opentelemetry.io/otel/sdk v1.10.0 +) require ( github.com/go-logr/logr v1.2.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/google/sqlcommenter/go/core v0.0.1-beta // indirect go.opentelemetry.io/otel v1.10.0 // indirect golang.org/x/sys v0.0.0-20220927170352-d9d178bc13c6 // indirect ) diff --git a/go/go-sql/go.sum b/go/database/sql/go.sum similarity index 100% rename from go/go-sql/go.sum rename to go/database/sql/go.sum