diff --git a/api/admin/logs.go b/api/admin/logs.go index ec26b0f..a064df0 100644 --- a/api/admin/logs.go +++ b/api/admin/logs.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/LucaBernstein/beancount-bot-tg/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" "github.com/gin-gonic/gin" ) diff --git a/api/admin/logs_test.go b/api/admin/logs_test.go index e8e4de4..857ec78 100644 --- a/api/admin/logs_test.go +++ b/api/admin/logs_test.go @@ -5,9 +5,9 @@ import ( "net/http/httptest" "testing" - "github.com/LucaBernstein/beancount-bot-tg/api/admin" - "github.com/LucaBernstein/beancount-bot-tg/api/helpers/apiTest" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/admin" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers/apiTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" ) diff --git a/api/admin/router.go b/api/admin/router.go index 3f43bdf..9b0ae4f 100644 --- a/api/admin/router.go +++ b/api/admin/router.go @@ -1,8 +1,8 @@ package admin import ( - "github.com/LucaBernstein/beancount-bot-tg/api/helpers" - "github.com/LucaBernstein/beancount-bot-tg/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" "github.com/gin-gonic/gin" ) diff --git a/api/config/config.go b/api/config/config.go index 2622083..e109de9 100644 --- a/api/config/config.go +++ b/api/config/config.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-gonic/gin" "gopkg.in/telebot.v3" ) diff --git a/api/config/config_test.go b/api/config/config_test.go index 775cdbe..81ef039 100644 --- a/api/config/config_test.go +++ b/api/config/config_test.go @@ -6,10 +6,10 @@ import ( "strings" "testing" - "github.com/LucaBernstein/beancount-bot-tg/api/config" - "github.com/LucaBernstein/beancount-bot-tg/api/helpers/apiTest" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" - "github.com/LucaBernstein/beancount-bot-tg/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/config" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers/apiTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" ) diff --git a/api/config/router.go b/api/config/router.go index 8f5f4de..7818a96 100644 --- a/api/config/router.go +++ b/api/config/router.go @@ -1,8 +1,8 @@ package config import ( - "github.com/LucaBernstein/beancount-bot-tg/api/helpers" - "github.com/LucaBernstein/beancount-bot-tg/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" "github.com/gin-gonic/gin" ) diff --git a/api/cors.go b/api/cors.go index 830780b..5664089 100644 --- a/api/cors.go +++ b/api/cors.go @@ -4,7 +4,7 @@ import ( "log" "strings" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" ) diff --git a/api/health/monitoring.go b/api/health/monitoring.go index a9179b1..79433a9 100644 --- a/api/health/monitoring.go +++ b/api/health/monitoring.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-gonic/gin" ) diff --git a/api/health/monitoring_test.go b/api/health/monitoring_test.go index 982219f..317628d 100644 --- a/api/health/monitoring_test.go +++ b/api/health/monitoring_test.go @@ -3,9 +3,9 @@ package health_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "gopkg.in/telebot.v3" ) diff --git a/api/helpers/apiTest/mockBotApiUser.go b/api/helpers/apiTest/mockBotApiUser.go index c014e22..98370fc 100644 --- a/api/helpers/apiTest/mockBotApiUser.go +++ b/api/helpers/apiTest/mockBotApiUser.go @@ -3,11 +3,11 @@ package apiTest import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "gopkg.in/telebot.v3" ) diff --git a/api/helpers/chatId.go b/api/helpers/chatId.go index eed8dc7..40aa80d 100644 --- a/api/helpers/chatId.go +++ b/api/helpers/chatId.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "github.com/LucaBernstein/beancount-bot-tg/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" "github.com/gin-gonic/gin" "gopkg.in/telebot.v3" ) diff --git a/api/helpers/chatId_test.go b/api/helpers/chatId_test.go index c79f932..0932e68 100644 --- a/api/helpers/chatId_test.go +++ b/api/helpers/chatId_test.go @@ -5,8 +5,8 @@ import ( "net/http/httptest" "testing" - "github.com/LucaBernstein/beancount-bot-tg/api/helpers" - "github.com/LucaBernstein/beancount-bot-tg/api/helpers/apiTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers/apiTest" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" ) diff --git a/api/server.go b/api/server.go index eacf645..755787d 100644 --- a/api/server.go +++ b/api/server.go @@ -3,14 +3,14 @@ package api import ( "log" - "github.com/LucaBernstein/beancount-bot-tg/api/admin" - "github.com/LucaBernstein/beancount-bot-tg/api/config" - "github.com/LucaBernstein/beancount-bot-tg/api/suggestions" - "github.com/LucaBernstein/beancount-bot-tg/api/health" - "github.com/LucaBernstein/beancount-bot-tg/api/token" - "github.com/LucaBernstein/beancount-bot-tg/api/transactions" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/admin" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/config" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/health" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/suggestions" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/token" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/transactions" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-gonic/gin" "github.com/mandrigin/gin-spa/spa" ) diff --git a/api/suggestions/list.go b/api/suggestions/list.go index 6889bea..f56fc6b 100644 --- a/api/suggestions/list.go +++ b/api/suggestions/list.go @@ -4,7 +4,7 @@ import ( "net/http" "strings" - "github.com/LucaBernstein/beancount-bot-tg/api/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers" "github.com/gin-gonic/gin" "gopkg.in/telebot.v3" ) diff --git a/api/suggestions/router.go b/api/suggestions/router.go index 12ccc76..e148323 100644 --- a/api/suggestions/router.go +++ b/api/suggestions/router.go @@ -1,8 +1,8 @@ package suggestions import ( - "github.com/LucaBernstein/beancount-bot-tg/api/helpers" - "github.com/LucaBernstein/beancount-bot-tg/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" "github.com/gin-gonic/gin" ) diff --git a/api/token/grant.go b/api/token/grant.go index 91288c0..2ad824e 100644 --- a/api/token/grant.go +++ b/api/token/grant.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-gonic/gin" ) diff --git a/api/token/router.go b/api/token/router.go index efb44de..316f035 100644 --- a/api/token/router.go +++ b/api/token/router.go @@ -1,7 +1,7 @@ package token import ( - "github.com/LucaBernstein/beancount-bot-tg/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" "github.com/gin-gonic/gin" ) diff --git a/api/token/verification.go b/api/token/verification.go index c3cd970..805fc14 100644 --- a/api/token/verification.go +++ b/api/token/verification.go @@ -5,8 +5,8 @@ import ( "net/http" "strconv" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-gonic/gin" ) diff --git a/api/token/verification_test.go b/api/token/verification_test.go index 21fde78..97b2464 100644 --- a/api/token/verification_test.go +++ b/api/token/verification_test.go @@ -7,12 +7,12 @@ import ( "strings" "testing" - "github.com/LucaBernstein/beancount-bot-tg/api/token" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/token" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "gopkg.in/telebot.v3" diff --git a/api/transactions/list.go b/api/transactions/list.go index 1c960ec..a25667b 100644 --- a/api/transactions/list.go +++ b/api/transactions/list.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" - "github.com/LucaBernstein/beancount-bot-tg/api/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers" "github.com/gin-gonic/gin" "gopkg.in/telebot.v3" ) diff --git a/api/transactions/list_test.go b/api/transactions/list_test.go index 074a712..d1aeb57 100644 --- a/api/transactions/list_test.go +++ b/api/transactions/list_test.go @@ -6,11 +6,11 @@ import ( "net/http/httptest" "testing" - "github.com/LucaBernstein/beancount-bot-tg/api/transactions" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/transactions" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "gopkg.in/telebot.v3" diff --git a/api/transactions/router.go b/api/transactions/router.go index f79d0d6..e2e3f04 100644 --- a/api/transactions/router.go +++ b/api/transactions/router.go @@ -1,8 +1,8 @@ package transactions import ( - "github.com/LucaBernstein/beancount-bot-tg/api/helpers" - "github.com/LucaBernstein/beancount-bot-tg/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/api/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" "github.com/gin-gonic/gin" ) diff --git a/api/ui/pubspec.lock b/api/ui/pubspec.lock index c334218..a0bcd68 100644 --- a/api/ui/pubspec.lock +++ b/api/ui/pubspec.lock @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: ffi - sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99 + sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "2.1.0" file: dependency: transitive description: @@ -100,10 +100,10 @@ packages: dependency: "direct main" description: name: go_router - sha256: b3cadd2cd59a4103fd5f6bc572ca75111264698784e927aa471921c3477d5475 + sha256: "2aa884667eeda3a1c461f31e72af1f77984ab0f29450d8fb12ec1f7bc53eea14" url: "https://pub.dev" source: hosted - version: "10.0.0" + version: "10.1.0" http: dependency: "direct main" description: @@ -180,34 +180,34 @@ packages: dependency: transitive description: name: path_provider_linux - sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57 + sha256: ba2b77f0c52a33db09fc8caf85b12df691bf28d983e84cf87ff6d693cfa007b3 url: "https://pub.dev" source: hosted - version: "2.1.11" + version: "2.2.0" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec" + sha256: bced5679c7df11190e1ddc35f3222c858f328fff85c3942e46e7f5589bf9eb84 url: "https://pub.dev" source: hosted - version: "2.0.6" + version: "2.1.0" path_provider_windows: dependency: transitive description: name: path_provider_windows - sha256: "1cb68ba4cd3a795033de62ba1b7b4564dace301f952de6bfb3cd91b202b6ee96" + sha256: ee0e0d164516b90ae1f970bdf29f726f1aa730d7cfc449ecc74c495378b705da url: "https://pub.dev" source: hosted - version: "2.1.7" + version: "2.2.0" platform: dependency: transitive description: name: platform - sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + sha256: "57c07bf82207aee366dfaa3867b3164e4f03a238a461a11b0e8a3a510d51203d" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.1" plugin_platform_interface: dependency: transitive description: @@ -236,10 +236,10 @@ packages: dependency: transitive description: name: shared_preferences_foundation - sha256: f39696b83e844923b642ce9dd4bd31736c17e697f6731a5adf445b1274cf3cd4 + sha256: d29753996d8eb8f7619a1f13df6ce65e34bc107bef6330739ed76f18b22310ef url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.3" shared_preferences_linux: dependency: transitive description: @@ -353,10 +353,10 @@ packages: dependency: transitive description: name: xdg_directories - sha256: e0b1147eec179d3911f1f19b59206448f78195ca1d20514134e10641b7d7fbff + sha256: f0c26453a2d47aa4c2570c6a033246a3fc62da2fe23c7ffdd0a7495086dc0247 url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.2" sdks: dart: ">=3.0.1 <4.0.0" - flutter: ">=3.3.0" + flutter: ">=3.7.0" diff --git a/bot/botTest/mockBot.go b/bot/botTest/mockBot.go index 25c86cf..71053c9 100644 --- a/bot/botTest/mockBot.go +++ b/bot/botTest/mockBot.go @@ -3,7 +3,7 @@ package botTest import ( "time" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/config.go b/bot/config.go index 1266e14..68e7d53 100644 --- a/bot/config.go +++ b/bot/config.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/config_account_test.go b/bot/config_account_test.go index 0edeb98..d147a35 100644 --- a/bot/config_account_test.go +++ b/bot/config_account_test.go @@ -3,9 +3,9 @@ package bot_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" "gopkg.in/telebot.v3" ) diff --git a/bot/config_test.go b/bot/config_test.go index cfcb010..ac26583 100644 --- a/bot/config_test.go +++ b/bot/config_test.go @@ -8,9 +8,9 @@ import ( "time" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/controller.go b/bot/controller.go index 1ade0ba..32c16fb 100644 --- a/bot/controller.go +++ b/bot/controller.go @@ -6,9 +6,9 @@ import ( "strings" "time" - dbWrapper "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + dbWrapper "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/go-co-op/gocron" tb "gopkg.in/telebot.v3" ) diff --git a/bot/controller_test.go b/bot/controller_test.go index bd84f23..877b67e 100644 --- a/bot/controller_test.go +++ b/bot/controller_test.go @@ -10,9 +10,9 @@ import ( tb "gopkg.in/telebot.v3" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) // GitHub-Issue #16: Panic if plain message without state arrives diff --git a/bot/handler.go b/bot/handler.go index ab26e0f..fd36f89 100644 --- a/bot/handler.go +++ b/bot/handler.go @@ -4,7 +4,7 @@ import ( "log" "time" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/logger.go b/bot/logger.go index 499002e..29215a5 100644 --- a/bot/logger.go +++ b/bot/logger.go @@ -1,8 +1,8 @@ package bot import ( - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/replyKeyboards.go b/bot/replyKeyboards.go index 4276536..e3015d1 100644 --- a/bot/replyKeyboards.go +++ b/bot/replyKeyboards.go @@ -1,7 +1,7 @@ package bot import ( - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/replyKeyboards_test.go b/bot/replyKeyboards_test.go index 2cebb64..cc17f24 100644 --- a/bot/replyKeyboards_test.go +++ b/bot/replyKeyboards_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) func TestReplyKeyboardMaximumOptions(t *testing.T) { diff --git a/bot/stateHandler_test.go b/bot/stateHandler_test.go index 0ed2b4e..be0e371 100644 --- a/bot/stateHandler_test.go +++ b/bot/stateHandler_test.go @@ -3,7 +3,7 @@ package bot_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" tb "gopkg.in/telebot.v3" ) diff --git a/bot/suggestions.go b/bot/suggestions.go index 833fe13..f5fb706 100644 --- a/bot/suggestions.go +++ b/bot/suggestions.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - h "github.com/LucaBernstein/beancount-bot-tg/helpers" + h "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/suggestions_test.go b/bot/suggestions_test.go index 43217e5..4ae244c 100644 --- a/bot/suggestions_test.go +++ b/bot/suggestions_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" tb "gopkg.in/telebot.v3" ) diff --git a/bot/templates.go b/bot/templates.go index 8a50a67..d5a2ccc 100644 --- a/bot/templates.go +++ b/bot/templates.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - h "github.com/LucaBernstein/beancount-bot-tg/helpers" + h "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/templates_test.go b/bot/templates_test.go index 3cbeb79..54763c0 100644 --- a/bot/templates_test.go +++ b/bot/templates_test.go @@ -8,10 +8,10 @@ import ( "testing" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/bot/botTest" - dbpkg "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot/botTest" + dbpkg "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/transactionBuilder.go b/bot/transactionBuilder.go index ae4938d..76707dd 100644 --- a/bot/transactionBuilder.go +++ b/bot/transactionBuilder.go @@ -10,8 +10,8 @@ import ( "time" "unicode/utf8" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - c "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + c "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/fatih/structs" tb "gopkg.in/telebot.v3" ) diff --git a/bot/transactionBuilder_test.go b/bot/transactionBuilder_test.go index 38d90d4..b58860d 100644 --- a/bot/transactionBuilder_test.go +++ b/bot/transactionBuilder_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/bot/wrapper.go b/bot/wrapper.go index 2797a40..9fa1bb5 100644 --- a/bot/wrapper.go +++ b/bot/wrapper.go @@ -1,7 +1,7 @@ package bot import ( - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/connection.go b/db/connection.go index 7c915cb..96ec90a 100644 --- a/db/connection.go +++ b/db/connection.go @@ -6,8 +6,8 @@ import ( "log" "strings" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" _ "github.com/lib/pq" _ "modernc.org/sqlite" ) diff --git a/db/connection_test.go b/db/connection_test.go index c8e069c..af6c0fd 100644 --- a/db/connection_test.go +++ b/db/connection_test.go @@ -3,7 +3,7 @@ package db_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" ) func TestBasicMigration(t *testing.T) { diff --git a/db/crud/api_token.go b/db/crud/api_token.go index 4c44ecd..84e0653 100644 --- a/db/crud/api_token.go +++ b/db/crud/api_token.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "github.com/google/uuid" ) diff --git a/db/crud/api_token_test.go b/db/crud/api_token_test.go index 7d045db..f84a43d 100644 --- a/db/crud/api_token_test.go +++ b/db/crud/api_token_test.go @@ -4,9 +4,9 @@ import ( "log" "testing" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "gopkg.in/telebot.v3" ) diff --git a/db/crud/auth_user.go b/db/crud/auth_user.go index 74d9fd5..6b3fbf3 100644 --- a/db/crud/auth_user.go +++ b/db/crud/auth_user.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/auth_user_test.go b/db/crud/auth_user_test.go index 17fc272..bfc31d7 100644 --- a/db/crud/auth_user_test.go +++ b/db/crud/auth_user_test.go @@ -7,9 +7,9 @@ import ( "time" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_cache.go b/db/crud/bot_cache.go index 0e78e1f..fed5422 100644 --- a/db/crud/bot_cache.go +++ b/db/crud/bot_cache.go @@ -4,8 +4,8 @@ import ( "database/sql" "fmt" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_cache_test.go b/db/crud/bot_cache_test.go index b4c3fac..b025c04 100644 --- a/db/crud/bot_cache_test.go +++ b/db/crud/bot_cache_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_templates.go b/db/crud/bot_templates.go index 0e7961e..0ff0b62 100644 --- a/db/crud/bot_templates.go +++ b/db/crud/bot_templates.go @@ -3,7 +3,7 @@ package crud import ( "fmt" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_templates_test.go b/db/crud/bot_templates_test.go index 8bc5335..1fc3876 100644 --- a/db/crud/bot_templates_test.go +++ b/db/crud/bot_templates_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_transaction.go b/db/crud/bot_transaction.go index 74423ce..f9d3024 100644 --- a/db/crud/bot_transaction.go +++ b/db/crud/bot_transaction.go @@ -3,8 +3,8 @@ package crud import ( "fmt" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_transaction_test.go b/db/crud/bot_transaction_test.go index 65506a5..157a7e8 100644 --- a/db/crud/bot_transaction_test.go +++ b/db/crud/bot_transaction_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_userSettings.go b/db/crud/bot_userSettings.go index 7ad20f8..452636a 100644 --- a/db/crud/bot_userSettings.go +++ b/db/crud/bot_userSettings.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/bot_userSettings_test.go b/db/crud/bot_userSettings_test.go index e9cd2a8..36c28e4 100644 --- a/db/crud/bot_userSettings_test.go +++ b/db/crud/bot_userSettings_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/controller.go b/db/crud/controller.go index 4530dcc..f02036b 100644 --- a/db/crud/controller.go +++ b/db/crud/controller.go @@ -1,7 +1,7 @@ package crud import ( - dbWrapper "github.com/LucaBernstein/beancount-bot-tg/db" + dbWrapper "github.com/LucaBernstein/beancount-bot-tg/v2/db" ) type Repo struct { diff --git a/db/crud/logger.go b/db/crud/logger.go index a9f27bf..d1061b7 100644 --- a/db/crud/logger.go +++ b/db/crud/logger.go @@ -3,8 +3,8 @@ package crud import ( "log" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/db/crud/monitoring.go b/db/crud/monitoring.go index 6c52f76..c36cc83 100644 --- a/db/crud/monitoring.go +++ b/db/crud/monitoring.go @@ -4,7 +4,7 @@ import ( "strings" "time" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) func (r *Repo) HealthGetLogs(lastHours int) (errors int, warnings int, err error) { diff --git a/db/crud/monitoring_test.go b/db/crud/monitoring_test.go index 8ec7e54..def1d89 100644 --- a/db/crud/monitoring_test.go +++ b/db/crud/monitoring_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/DATA-DOG/go-sqlmock" - "github.com/LucaBernstein/beancount-bot-tg/db" - "github.com/LucaBernstein/beancount-bot-tg/db/crud" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/crud" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" "gopkg.in/telebot.v3" ) diff --git a/db/dialects.go b/db/dialects.go index c0c69c4..de3266b 100644 --- a/db/dialects.go +++ b/db/dialects.go @@ -3,7 +3,7 @@ package db import ( "strings" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) func DbType() string { diff --git a/db/migrations/migrationsController.go b/db/migrations/migrationsController.go index c7c014e..1d81bf7 100644 --- a/db/migrations/migrationsController.go +++ b/db/migrations/migrationsController.go @@ -4,9 +4,9 @@ import ( "database/sql" "log" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/generic" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/postgres" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/sqlite" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/generic" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/postgres" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/sqlite" ) type MigrationProvider interface { diff --git a/db/migrations/postgres/controller.go b/db/migrations/postgres/controller.go index 5273b02..cc9dee2 100644 --- a/db/migrations/postgres/controller.go +++ b/db/migrations/postgres/controller.go @@ -4,7 +4,7 @@ import ( "database/sql" "log" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/generic" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/generic" ) type Controller struct{} diff --git a/db/migrations/postgres/v1.go b/db/migrations/postgres/v1.go index a3615bc..7fc6383 100644 --- a/db/migrations/postgres/v1.go +++ b/db/migrations/postgres/v1.go @@ -4,7 +4,7 @@ import ( "database/sql" "log" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/generic" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/generic" ) func (c *Controller) V1(db *sql.Tx) { diff --git a/db/migrations/postgres/v13.go b/db/migrations/postgres/v13.go index e3af0d2..1bb95e5 100644 --- a/db/migrations/postgres/v13.go +++ b/db/migrations/postgres/v13.go @@ -3,7 +3,7 @@ package postgres import ( "database/sql" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/generic" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/generic" ) func (c *Controller) V13(db *sql.Tx) { diff --git a/db/migrations/sqlite/controller.go b/db/migrations/sqlite/controller.go index d212bcc..b93474c 100644 --- a/db/migrations/sqlite/controller.go +++ b/db/migrations/sqlite/controller.go @@ -4,7 +4,7 @@ import ( "database/sql" "log" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/generic" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/generic" ) type Controller struct{} diff --git a/db/migrations/sqlite/v1-v12.go b/db/migrations/sqlite/v1-v12.go index 722bc70..7e0f34d 100644 --- a/db/migrations/sqlite/v1-v12.go +++ b/db/migrations/sqlite/v1-v12.go @@ -4,7 +4,7 @@ import ( "database/sql" "log" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/generic" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/generic" ) func (c *Controller) V1(db *sql.Tx) { diff --git a/db/migrations/sqlite/v13.go b/db/migrations/sqlite/v13.go index 36f2a2b..fed6958 100644 --- a/db/migrations/sqlite/v13.go +++ b/db/migrations/sqlite/v13.go @@ -3,7 +3,7 @@ package sqlite import ( "database/sql" - "github.com/LucaBernstein/beancount-bot-tg/db/migrations/generic" + "github.com/LucaBernstein/beancount-bot-tg/v2/db/migrations/generic" ) func (c *Controller) V13(db *sql.Tx) { diff --git a/go.mod b/go.mod index 210b4a3..d400488 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/LucaBernstein/beancount-bot-tg +module github.com/LucaBernstein/beancount-bot-tg/v2 go 1.17 diff --git a/helpers/arrays_test.go b/helpers/arrays_test.go index 5d610e7..db5dd0d 100644 --- a/helpers/arrays_test.go +++ b/helpers/arrays_test.go @@ -3,7 +3,7 @@ package helpers_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) func TestArrayMatching(t *testing.T) { diff --git a/helpers/constants_test.go b/helpers/constants_test.go index 410aac6..4aee576 100644 --- a/helpers/constants_test.go +++ b/helpers/constants_test.go @@ -3,7 +3,7 @@ package helpers_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) func TestFqCacheKey(t *testing.T) { diff --git a/helpers/env_test.go b/helpers/env_test.go index c26da23..32effae 100644 --- a/helpers/env_test.go +++ b/helpers/env_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) const TEST_ENV_KEY = "BEANCOUNT_BOT_TG_TEST_ENV_KEY" diff --git a/helpers/logger_test.go b/helpers/logger_test.go index e3a33f0..92a4694 100644 --- a/helpers/logger_test.go +++ b/helpers/logger_test.go @@ -3,7 +3,7 @@ package helpers_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/helpers/subcommands_test.go b/helpers/subcommands_test.go index 100b6e7..fa48b14 100644 --- a/helpers/subcommands_test.go +++ b/helpers/subcommands_test.go @@ -3,7 +3,7 @@ package helpers_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" tb "gopkg.in/telebot.v3" ) diff --git a/helpers/template_test.go b/helpers/template_test.go index 02bbc8e..5fcfad3 100644 --- a/helpers/template_test.go +++ b/helpers/template_test.go @@ -3,7 +3,7 @@ package helpers_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) func TestTemplateParsing(t *testing.T) { diff --git a/helpers/test_test.go b/helpers/test_test.go index e889735..8c619d0 100644 --- a/helpers/test_test.go +++ b/helpers/test_test.go @@ -3,7 +3,7 @@ package helpers_test import ( "testing" - "github.com/LucaBernstein/beancount-bot-tg/helpers" + "github.com/LucaBernstein/beancount-bot-tg/v2/helpers" ) func TestTestHelpers(t *testing.T) { diff --git a/main.go b/main.go index 6730647..67118f1 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/LucaBernstein/beancount-bot-tg/api" - "github.com/LucaBernstein/beancount-bot-tg/bot" - "github.com/LucaBernstein/beancount-bot-tg/db" + "github.com/LucaBernstein/beancount-bot-tg/v2/api" + "github.com/LucaBernstein/beancount-bot-tg/v2/bot" + "github.com/LucaBernstein/beancount-bot-tg/v2/db" ) func main() {