From 5784b469b9be383a66f79570bd97f2e4dc0a91ba Mon Sep 17 00:00:00 2001 From: SoXX Date: Tue, 2 Jul 2024 10:11:42 +0200 Subject: [PATCH] feat: fixed module path to v2 Signed-off-by: SoXX --- README.md | 10 +++++----- go.mod | 4 ++-- go.sum | 4 ++-- internal/postgres/post.go | 4 ++-- internal/postgres/post_test.go | 4 ++-- internal/postgres/relationships.go | 4 ++-- internal/postgres/relationships_test.go | 4 ++-- internal/postgres/source.go | 4 ++-- internal/postgres/source_test.go | 4 ++-- internal/postgres/tag.go | 4 ++-- internal/postgres/tag_test.go | 4 ++-- internal/postgres/user.go | 4 ++-- internal/postgres/user_test.go | 4 ++-- pkg/database/database.go | 2 +- pkg/database/post.go | 2 +- pkg/database/postgres.go | 4 ++-- pkg/database/postgres_test.go | 6 +++--- pkg/database/source.go | 2 +- pkg/database/tag.go | 2 +- pkg/database/tagalias.go | 2 +- pkg/database/taggroup.go | 2 +- pkg/database/user.go | 2 +- test/helper.go | 2 +- 23 files changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 57ec96e..a0828e0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ - -![Build Check Runner](https://git.dragse.it/anthrove/otter-space-sdk/actions/workflows/build_check.yaml/badge.svg) +![Build Check Runner](https://git.dragse.it/anthrove/otter-space-sdk/v2/actions/workflows/build_check.yaml/badge.svg) [![Bugs](https://sonarqube.dragse.de/api/project_badges/measure?project=Anthrove---OtterSpace-SDK&metric=bugs&token=sqb_96012ffdd64ce721d7f9c82bfa77aa27a5c1fd38)](https://sonarqube.dragse.de/dashboard?id=Anthrove---OtterSpace-SDK) [![Code Smells](https://sonarqube.dragse.de/api/project_badges/measure?project=Anthrove---OtterSpace-SDK&metric=code_smells&token=sqb_96012ffdd64ce721d7f9c82bfa77aa27a5c1fd38)](https://sonarqube.dragse.de/dashboard?id=Anthrove---OtterSpace-SDK) [![Coverage](https://sonarqube.dragse.de/api/project_badges/measure?project=Anthrove---OtterSpace-SDK&metric=coverage&token=sqb_96012ffdd64ce721d7f9c82bfa77aa27a5c1fd38)](https://sonarqube.dragse.de/dashboard?id=Anthrove---OtterSpace-SDK) @@ -23,7 +22,7 @@ The OtterSpace SDK is a Go package for interacting with the OtterSpace API. It p To install the OtterSpace SDK, you can use `go get`: ```shell -go get git.dragse.it/anthrove/otter-space-sdk +go get git.dragse.it/anthrove/otter-space-sdk/v2 ```` ## Usage @@ -35,8 +34,9 @@ package main import ( "context" "fmt" - "git.dragse.it/anthrove/otter-space-sdk/pkg/database" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) func main() { diff --git a/go.mod b/go.mod index fe9ef40..a4ebeeb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.dragse.it/anthrove/otter-space-sdk +module git.dragse.it/anthrove/otter-space-sdk/v2 go 1.22.0 @@ -9,7 +9,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/testcontainers/testcontainers-go v0.31.0 github.com/testcontainers/testcontainers-go/modules/postgres v0.31.0 - gorm.io/driver/postgres v1.5.7 + gorm.io/driver/postgres v1.5.9 gorm.io/gorm v1.25.10 ) diff --git a/go.sum b/go.sum index a54ced4..3b44b4c 100644 --- a/go.sum +++ b/go.sum @@ -221,8 +221,8 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EV gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gorm.io/driver/postgres v1.5.7 h1:8ptbNJTDbEmhdr62uReG5BGkdQyeasu/FZHxI0IMGnM= -gorm.io/driver/postgres v1.5.7/go.mod h1:3e019WlBaYI5o5LIdNV+LyxCMNtLOQETBXL2h4chKpA= +gorm.io/driver/postgres v1.5.9 h1:DkegyItji119OlcaLjqN11kHoUgZ/j13E0jkJZgD6A8= +gorm.io/driver/postgres v1.5.9/go.mod h1:DX3GReXH+3FPWGrrgffdvCk3DQ1dwDPdmbenSkweRGI= gorm.io/gorm v1.25.10 h1:dQpO+33KalOA+aFYGlK+EfxcI5MbO7EP2yYygwh9h+s= gorm.io/gorm v1.25.10/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8= gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY= diff --git a/internal/postgres/post.go b/internal/postgres/post.go index 6c08cf3..72a3b1a 100644 --- a/internal/postgres/post.go +++ b/internal/postgres/post.go @@ -4,9 +4,9 @@ import ( "context" "errors" - otterError "git.dragse.it/anthrove/otter-space-sdk/pkg/error" + otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" log "github.com/sirupsen/logrus" "gorm.io/gorm" ) diff --git a/internal/postgres/post_test.go b/internal/postgres/post_test.go index bb525c8..a9c5177 100644 --- a/internal/postgres/post_test.go +++ b/internal/postgres/post_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" - "git.dragse.it/anthrove/otter-space-sdk/test" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/test" _ "github.com/lib/pq" "gorm.io/gorm" ) diff --git a/internal/postgres/relationships.go b/internal/postgres/relationships.go index bda9569..86ab670 100644 --- a/internal/postgres/relationships.go +++ b/internal/postgres/relationships.go @@ -4,8 +4,8 @@ import ( "context" "errors" - otterError "git.dragse.it/anthrove/otter-space-sdk/pkg/error" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" log "github.com/sirupsen/logrus" "gorm.io/gorm" ) diff --git a/internal/postgres/relationships_test.go b/internal/postgres/relationships_test.go index dd67e2a..456ce69 100644 --- a/internal/postgres/relationships_test.go +++ b/internal/postgres/relationships_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" - "git.dragse.it/anthrove/otter-space-sdk/test" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/test" "gorm.io/gorm" ) diff --git a/internal/postgres/source.go b/internal/postgres/source.go index bdb2122..ab3ca52 100644 --- a/internal/postgres/source.go +++ b/internal/postgres/source.go @@ -4,8 +4,8 @@ import ( "context" "errors" - otterError "git.dragse.it/anthrove/otter-space-sdk/pkg/error" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" log "github.com/sirupsen/logrus" "gorm.io/gorm" diff --git a/internal/postgres/source_test.go b/internal/postgres/source_test.go index dc5c58e..38a60d9 100644 --- a/internal/postgres/source_test.go +++ b/internal/postgres/source_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" - "git.dragse.it/anthrove/otter-space-sdk/test" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/test" "gorm.io/gorm" ) diff --git a/internal/postgres/tag.go b/internal/postgres/tag.go index 7ca240c..94ae51d 100644 --- a/internal/postgres/tag.go +++ b/internal/postgres/tag.go @@ -4,8 +4,8 @@ import ( "context" "errors" - otterError "git.dragse.it/anthrove/otter-space-sdk/pkg/error" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" log "github.com/sirupsen/logrus" "gorm.io/gorm" ) diff --git a/internal/postgres/tag_test.go b/internal/postgres/tag_test.go index d1bc639..9c6891d 100644 --- a/internal/postgres/tag_test.go +++ b/internal/postgres/tag_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" - "git.dragse.it/anthrove/otter-space-sdk/test" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/test" "gorm.io/gorm" ) diff --git a/internal/postgres/user.go b/internal/postgres/user.go index 5037a17..d6c3769 100644 --- a/internal/postgres/user.go +++ b/internal/postgres/user.go @@ -5,8 +5,8 @@ import ( "errors" "time" - otterError "git.dragse.it/anthrove/otter-space-sdk/pkg/error" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" gonanoid "github.com/matoous/go-nanoid/v2" log "github.com/sirupsen/logrus" "gorm.io/gorm" diff --git a/internal/postgres/user_test.go b/internal/postgres/user_test.go index c8be97a..a57eb10 100644 --- a/internal/postgres/user_test.go +++ b/internal/postgres/user_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" - "git.dragse.it/anthrove/otter-space-sdk/test" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/test" "gorm.io/gorm" ) diff --git a/pkg/database/database.go b/pkg/database/database.go index bc19286..8fbd8da 100644 --- a/pkg/database/database.go +++ b/pkg/database/database.go @@ -3,7 +3,7 @@ package database import ( "context" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) type OtterSpace interface { diff --git a/pkg/database/post.go b/pkg/database/post.go index 0111170..fb0665a 100644 --- a/pkg/database/post.go +++ b/pkg/database/post.go @@ -3,7 +3,7 @@ package database import ( "context" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) type Post interface { diff --git a/pkg/database/postgres.go b/pkg/database/postgres.go index 2692907..ad47bf2 100644 --- a/pkg/database/postgres.go +++ b/pkg/database/postgres.go @@ -8,8 +8,8 @@ import ( "os" "time" - "git.dragse.it/anthrove/otter-space-sdk/internal/postgres" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/internal/postgres" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" _ "github.com/lib/pq" migrate "github.com/rubenv/sql-migrate" log "github.com/sirupsen/logrus" diff --git a/pkg/database/postgres_test.go b/pkg/database/postgres_test.go index 0f1b8d9..553caac 100644 --- a/pkg/database/postgres_test.go +++ b/pkg/database/postgres_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "git.dragse.it/anthrove/otter-space-sdk/internal/postgres" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" - "git.dragse.it/anthrove/otter-space-sdk/test" + "git.dragse.it/anthrove/otter-space-sdk/v2/internal/postgres" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/test" "gorm.io/gorm" ) diff --git a/pkg/database/source.go b/pkg/database/source.go index 776c1d1..6c431af 100644 --- a/pkg/database/source.go +++ b/pkg/database/source.go @@ -3,7 +3,7 @@ package database import ( "context" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) type Source interface { diff --git a/pkg/database/tag.go b/pkg/database/tag.go index 44fa553..b034f2f 100644 --- a/pkg/database/tag.go +++ b/pkg/database/tag.go @@ -3,7 +3,7 @@ package database import ( "context" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) type Tag interface { diff --git a/pkg/database/tagalias.go b/pkg/database/tagalias.go index 30171d4..0aeba5a 100644 --- a/pkg/database/tagalias.go +++ b/pkg/database/tagalias.go @@ -3,7 +3,7 @@ package database import ( "context" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) type TagAlias interface { diff --git a/pkg/database/taggroup.go b/pkg/database/taggroup.go index f25bd68..b62e28d 100644 --- a/pkg/database/taggroup.go +++ b/pkg/database/taggroup.go @@ -3,7 +3,7 @@ package database import ( "context" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) type TagGroup interface { diff --git a/pkg/database/user.go b/pkg/database/user.go index b74d672..b8936bb 100644 --- a/pkg/database/user.go +++ b/pkg/database/user.go @@ -3,7 +3,7 @@ package database import ( "context" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" ) type User interface { diff --git a/test/helper.go b/test/helper.go index b16d9d1..6c8ac2b 100644 --- a/test/helper.go +++ b/test/helper.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" migrate "github.com/rubenv/sql-migrate" postgrescontainer "github.com/testcontainers/testcontainers-go/modules/postgres" "gorm.io/driver/postgres"