From c24756973e91f48808c45b4d5c75df0bb413e51b Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sat, 18 Mar 2023 02:31:52 -0700 Subject: [PATCH] Fix: go module issue fixes: --- go: endless/internal/moonproxy imports git.tcp.direct/moony/endless/internal/moonproxy: git.tcp.direct/moony/endless@v0.0.0-20230317092824-035eb62124ec: parsing go.mod: module declares its path as: endless but was required as: git.tcp.direct/moony/endless --- cmd/groceries/main.go | 7 ++++--- components/modules/checker.go | 3 ++- components/modules/scraper.go | 3 ++- go.mod | 2 +- internal/moonproxy/checker.go | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/cmd/groceries/main.go b/cmd/groceries/main.go index 0e11057..a8f7876 100644 --- a/cmd/groceries/main.go +++ b/cmd/groceries/main.go @@ -1,11 +1,12 @@ -package endless +package main import ( - "components/modules" - "components/utils" "fmt" "time" + "git.tcp.direct/moony/endless/components/modules" + "git.tcp.direct/moony/endless/internal/utils" + "github.com/zenthangplus/goccm" ) diff --git a/components/modules/checker.go b/components/modules/checker.go index af1ce1d..29155eb 100644 --- a/components/modules/checker.go +++ b/components/modules/checker.go @@ -1,7 +1,6 @@ package modules import ( - "components/utils" "fmt" "io/ioutil" "net/http" @@ -9,6 +8,8 @@ import ( "strings" "time" + "git.tcp.direct/moony/endless/internal/utils" + "h12.io/socks" ) diff --git a/components/modules/scraper.go b/components/modules/scraper.go index 10e7268..af9f2fd 100644 --- a/components/modules/scraper.go +++ b/components/modules/scraper.go @@ -1,13 +1,14 @@ package modules import ( - "components/utils" "fmt" "io/ioutil" "net/http" "strings" "time" + "git.tcp.direct/moony/endless/internal/utils" + "github.com/zenthangplus/goccm" ) diff --git a/go.mod b/go.mod index f22b3b5..6252768 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module endless +module git.tcp.direct/moony/endless go 1.20 diff --git a/internal/moonproxy/checker.go b/internal/moonproxy/checker.go index 3f5888b..aa297ac 100644 --- a/internal/moonproxy/checker.go +++ b/internal/moonproxy/checker.go @@ -10,7 +10,7 @@ import ( "h12.io/socks" - "git.tcp.direct/moony/endless/internal/moonproxy" + "git.tcp.direct/moony/endless/internal/utils" ) func GetHttpTransport(Proxy string) *http.Transport {