diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1670b20..0f97865 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: goarch: ${{ matrix.goarch }} overwrite: true pre_command: export CGO_ENABLED=0 - ldflags: -s -w -X xmr-remote-nodes/internal/config.Version=${{github.ref_name}} + ldflags: -s -w -X github.com/ditatompel/xmr-remote-nodes/internal/config.Version=${{github.ref_name}} build_flags: -tags server project_path: . binary_name: server @@ -53,7 +53,7 @@ jobs: goarch: ${{ matrix.goarch }} overwrite: true pre_command: export CGO_ENABLED=0 - ldflags: -s -w -X xmr-remote-nodes/internal/config.Version=${{github.ref_name}} + ldflags: -s -w -X github.com/ditatompel/xmr-remote-nodes/internal/config.Version=${{github.ref_name}} binary_name: client project_path: . extra_files: LICENSE README.md diff --git a/Makefile b/Makefile index 957b357..5333259 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ ifdef RELEASE_TAG endif # end modified rclone's Makefile -BUILD_LDFLAGS := -s -w -X xmr-remote-nodes/internal/config.Version=$(TAG) +BUILD_LDFLAGS := -s -w -X github.com/ditatompel/xmr-remote-nodes/internal/config.Version=$(TAG) # This called from air cmd (see .air.toml) .PHONY: dev diff --git a/cmd/client/probe.go b/cmd/client/probe.go index 3d83241..0794bd5 100644 --- a/cmd/client/probe.go +++ b/cmd/client/probe.go @@ -12,8 +12,9 @@ import ( "net/http" "os" "time" - "xmr-remote-nodes/internal/config" - "xmr-remote-nodes/internal/monero" + + "github.com/ditatompel/xmr-remote-nodes/internal/config" + "github.com/ditatompel/xmr-remote-nodes/internal/monero" "github.com/spf13/cobra" "golang.org/x/net/proxy" diff --git a/cmd/cmd.go b/cmd/cmd.go index 2ea6217..2759212 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -2,8 +2,9 @@ package cmd import ( "os" - "xmr-remote-nodes/cmd/client" - "xmr-remote-nodes/internal/config" + + "github.com/ditatompel/xmr-remote-nodes/cmd/client" + "github.com/ditatompel/xmr-remote-nodes/internal/config" "github.com/spf13/cobra" ) diff --git a/cmd/server/cron.go b/cmd/server/cron.go index 51c4797..09277ee 100644 --- a/cmd/server/cron.go +++ b/cmd/server/cron.go @@ -5,8 +5,9 @@ import ( "os" "text/tabwriter" "time" - "xmr-remote-nodes/internal/cron" - "xmr-remote-nodes/internal/database" + + "github.com/ditatompel/xmr-remote-nodes/internal/cron" + "github.com/ditatompel/xmr-remote-nodes/internal/database" "github.com/spf13/cobra" ) diff --git a/cmd/server/init.go b/cmd/server/init.go index c218abf..851afba 100644 --- a/cmd/server/init.go +++ b/cmd/server/init.go @@ -1,6 +1,6 @@ package server -import "xmr-remote-nodes/cmd" +import "github.com/ditatompel/xmr-remote-nodes/cmd" func init() { cmd.Root.AddCommand(serveCmd) diff --git a/cmd/server/probers.go b/cmd/server/probers.go index 819d7a5..24e3490 100644 --- a/cmd/server/probers.go +++ b/cmd/server/probers.go @@ -9,8 +9,9 @@ import ( "strings" "text/tabwriter" "time" - "xmr-remote-nodes/internal/database" - "xmr-remote-nodes/internal/monero" + + "github.com/ditatompel/xmr-remote-nodes/internal/database" + "github.com/ditatompel/xmr-remote-nodes/internal/monero" "github.com/spf13/cobra" ) diff --git a/cmd/server/serve.go b/cmd/server/serve.go index 5d4c700..6c0ec30 100644 --- a/cmd/server/serve.go +++ b/cmd/server/serve.go @@ -7,11 +7,12 @@ import ( "os/signal" "syscall" "time" - "xmr-remote-nodes/frontend" - "xmr-remote-nodes/handler" - "xmr-remote-nodes/internal/config" - "xmr-remote-nodes/internal/cron" - "xmr-remote-nodes/internal/database" + + "github.com/ditatompel/xmr-remote-nodes/frontend" + "github.com/ditatompel/xmr-remote-nodes/handler" + "github.com/ditatompel/xmr-remote-nodes/internal/config" + "github.com/ditatompel/xmr-remote-nodes/internal/cron" + "github.com/ditatompel/xmr-remote-nodes/internal/database" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/cors" diff --git a/go.mod b/go.mod index ba4a8d1..165c08d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module xmr-remote-nodes +module github.com/ditatompel/xmr-remote-nodes go 1.22.2 diff --git a/handler/middlewares.go b/handler/middlewares.go index b6dce2b..ec55dce 100644 --- a/handler/middlewares.go +++ b/handler/middlewares.go @@ -1,7 +1,7 @@ package handler import ( - "xmr-remote-nodes/internal/monero" + "github.com/ditatompel/xmr-remote-nodes/internal/monero" "github.com/gofiber/fiber/v2" ) diff --git a/handler/response.go b/handler/response.go index d390e5e..dfeb46b 100644 --- a/handler/response.go +++ b/handler/response.go @@ -2,7 +2,8 @@ package handler import ( "strconv" - "xmr-remote-nodes/internal/monero" + + "github.com/ditatompel/xmr-remote-nodes/internal/monero" "github.com/gofiber/fiber/v2" ) diff --git a/internal/cron/cron.go b/internal/cron/cron.go index b814018..303f21b 100644 --- a/internal/cron/cron.go +++ b/internal/cron/cron.go @@ -5,7 +5,8 @@ import ( "log/slog" "math" "time" - "xmr-remote-nodes/internal/database" + + "github.com/ditatompel/xmr-remote-nodes/internal/database" ) type CronRepository interface { diff --git a/internal/database/mysql.go b/internal/database/mysql.go index 03dccd4..f816313 100644 --- a/internal/database/mysql.go +++ b/internal/database/mysql.go @@ -2,7 +2,8 @@ package database import ( "fmt" - "xmr-remote-nodes/internal/config" + + "github.com/ditatompel/xmr-remote-nodes/internal/config" _ "github.com/go-sql-driver/mysql" "github.com/jmoiron/sqlx" diff --git a/internal/monero/monero.go b/internal/monero/monero.go index 3bb28b4..d661605 100644 --- a/internal/monero/monero.go +++ b/internal/monero/monero.go @@ -10,7 +10,8 @@ import ( "slices" "strings" "time" - "xmr-remote-nodes/internal/database" + + "github.com/ditatompel/xmr-remote-nodes/internal/database" "github.com/jmoiron/sqlx/types" ) diff --git a/internal/monero/monero_test.go b/internal/monero/monero_test.go index 41766de..71b1e88 100644 --- a/internal/monero/monero_test.go +++ b/internal/monero/monero_test.go @@ -5,8 +5,9 @@ import ( "reflect" "strconv" "testing" - "xmr-remote-nodes/internal/config" - "xmr-remote-nodes/internal/database" + + "github.com/ditatompel/xmr-remote-nodes/internal/config" + "github.com/ditatompel/xmr-remote-nodes/internal/database" ) var testMySQL = true diff --git a/internal/monero/prober.go b/internal/monero/prober.go index 7d47fc5..26f93f8 100644 --- a/internal/monero/prober.go +++ b/internal/monero/prober.go @@ -4,7 +4,8 @@ import ( "fmt" "slices" "strings" - "xmr-remote-nodes/internal/database" + + "github.com/ditatompel/xmr-remote-nodes/internal/database" "github.com/google/uuid" ) diff --git a/internal/monero/report.go b/internal/monero/report.go index 77802aa..e6b78c6 100644 --- a/internal/monero/report.go +++ b/internal/monero/report.go @@ -9,7 +9,8 @@ import ( "slices" "strings" "time" - "xmr-remote-nodes/internal/geo" + + "github.com/ditatompel/xmr-remote-nodes/internal/geo" ) type QueryLogs struct { diff --git a/main.go b/main.go index 025f22f..a545a1f 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "xmr-remote-nodes/cmd" + "github.com/ditatompel/xmr-remote-nodes/cmd" ) func main() { diff --git a/server.go b/server.go index 6dcf961..aefd523 100644 --- a/server.go +++ b/server.go @@ -2,4 +2,4 @@ package main -import _ "xmr-remote-nodes/cmd/server" +import _ "github.com/ditatompel/xmr-remote-nodes/cmd/server"