From 2d09be24d71e8a46d3cead3ff42df0d3950dab70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pier=C5=9Bcionek?= Date: Mon, 5 Sep 2022 12:56:12 +0200 Subject: [PATCH] mod path --- plgo/modulewriter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plgo/modulewriter.go b/plgo/modulewriter.go index 61e988f..64485aa 100644 --- a/plgo/modulewriter.go +++ b/plgo/modulewriter.go @@ -134,18 +134,18 @@ func readPlGoSource() ([]byte, error) { goPath = build.Default.GOPATH // Go 1.8 and later have a default GOPATH } for _, goPathElement := range filepath.SplitList(goPath) { - path := filepath.Join(goPathElement, "src", "gitlab.com", "microo8", "plgo", "pl.go") + path := filepath.Join(goPathElement, "src", "github.com", "algonode", "plgo", "pl.go") if _, err := os.Stat(path); err == nil { found = path break } } if found == "" { - version, err := versionInfo("gitlab.com/microo8/plgo") + version, err := versionInfo("github.com/algonode/plgo") if err != nil { return nil, err } - pathEnd := filepath.Join("pkg", "mod", "gitlab.com", "microo8", "plgo@"+version, "pl.go") + pathEnd := filepath.Join("pkg", "mod", "github.com", "algonode", "plgo@"+version, "pl.go") cache, ok := os.LookupEnv("GOMODCACHE") if ok { path := filepath.Join(cache, pathEnd)