diff --git a/client/client.go b/client/client.go index 4a2644a..a72032c 100644 --- a/client/client.go +++ b/client/client.go @@ -11,7 +11,7 @@ import ( "strconv" "github.com/kalbhor/tasqueue/v2" - "github.com/zerodha/dungbeetle/models" + "github.com/zerodha/dungbeetle/v2/models" ) const ( diff --git a/client/client_test.go b/client/client_test.go index 3eeb9dc..bd2112c 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -8,8 +8,8 @@ import ( "time" "github.com/stretchr/testify/assert" - "github.com/zerodha/dungbeetle/internal/core" - "github.com/zerodha/dungbeetle/models" + "github.com/zerodha/dungbeetle/v2/internal/core" + "github.com/zerodha/dungbeetle/v2/models" ) var ( diff --git a/cmd/http.go b/cmd/http.go index e4805dc..e1d9737 100644 --- a/cmd/http.go +++ b/cmd/http.go @@ -7,8 +7,8 @@ import ( "strconv" "github.com/go-chi/chi/v5" - "github.com/zerodha/dungbeetle/internal/core" - "github.com/zerodha/dungbeetle/models" + "github.com/zerodha/dungbeetle/v2/internal/core" + "github.com/zerodha/dungbeetle/v2/models" ) // reValidateName represents the character classes allowed in a job ID. diff --git a/cmd/init.go b/cmd/init.go index 58b6cc4..634f5a1 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -17,9 +17,9 @@ import ( "github.com/knadh/koanf/providers/posflag" "github.com/knadh/koanf/v2" flag "github.com/spf13/pflag" - "github.com/zerodha/dungbeetle/internal/core" - "github.com/zerodha/dungbeetle/internal/dbpool" - "github.com/zerodha/dungbeetle/internal/resultbackends/sqldb" + "github.com/zerodha/dungbeetle/v2/internal/core" + "github.com/zerodha/dungbeetle/v2/internal/dbpool" + "github.com/zerodha/dungbeetle/v2/internal/resultbackends/sqldb" ) var ( diff --git a/cmd/server_test.go.bak b/cmd/server_test.go.bak index 36d989a..7ec5c96 100644 --- a/cmd/server_test.go.bak +++ b/cmd/server_test.go.bak @@ -15,8 +15,8 @@ import ( "github.com/RichardKnop/machinery/v1/config" "github.com/go-chi/chi/v5" "github.com/stretchr/testify/assert" - "github.com/zerodha/dungbeetle/backends" - "github.com/zerodha/dungbeetle/models" + "github.com/zerodha/dungbeetle/v2/backends" + "github.com/zerodha/dungbeetle/v2/models" ) // Test jobber container diff --git a/go.mod b/go.mod index c9630ba..23c23c5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/zerodha/dungbeetle +module github.com/zerodha/dungbeetle/v2 go 1.21 diff --git a/internal/core/core.go b/internal/core/core.go index f3bdc0c..de0423c 100644 --- a/internal/core/core.go +++ b/internal/core/core.go @@ -13,8 +13,8 @@ import ( uuid "github.com/gofrs/uuid/v5" "github.com/kalbhor/tasqueue/v2" "github.com/vmihailenco/msgpack" - "github.com/zerodha/dungbeetle/internal/dbpool" - "github.com/zerodha/dungbeetle/models" + "github.com/zerodha/dungbeetle/v2/internal/dbpool" + "github.com/zerodha/dungbeetle/v2/models" ) // Opt represents core options. diff --git a/internal/core/results.go b/internal/core/results.go index a1e29af..78c0490 100644 --- a/internal/core/results.go +++ b/internal/core/results.go @@ -5,7 +5,7 @@ import ( "math/rand" "strings" - "github.com/zerodha/dungbeetle/models" + "github.com/zerodha/dungbeetle/v2/models" ) // ResultBackends represents a map of result writing backends (sql DBs). diff --git a/internal/core/tasks.go b/internal/core/tasks.go index 2ed35c3..16c7f68 100644 --- a/internal/core/tasks.go +++ b/internal/core/tasks.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/knadh/goyesql/v2" - "github.com/zerodha/dungbeetle/internal/dbpool" + "github.com/zerodha/dungbeetle/v2/internal/dbpool" ) // Task represents an SQL query with its prepared and raw forms. diff --git a/internal/resultbackends/sqldb/sqldb.go b/internal/resultbackends/sqldb/sqldb.go index a0eb495..554c4bb 100644 --- a/internal/resultbackends/sqldb/sqldb.go +++ b/internal/resultbackends/sqldb/sqldb.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "github.com/zerodha/dungbeetle/models" + "github.com/zerodha/dungbeetle/v2/models" ) const (