Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git get error go.mod: unexpected module path "github.com/go-delve/delve" #629

Closed
jiftle opened this issue Sep 10, 2019 · 22 comments
Closed

Comments

@jiftle
Copy link

jiftle commented Sep 10, 2019

go: github.com/derekparker/delve@v1.3.1: parsing go.mod: unexpected module path "github.com/go-delve/delve"

go version go1.12.7 linux/amd64

@titanseason
Copy link

titanseason commented Sep 11, 2019

My go version is 1.13, and I got the same error:


C:\Users\Administrator>go get -u -v github.com/beego/bee
go: finding github.com/beego/bee v1.10.0
go: downloading github.com/beego/bee v1.10.0
go: extracting github.com/beego/bee v1.10.0
go: finding github.com/go-sql-driver/mysql v1.4.1
go: downloading github.com/go-sql-driver/mysql v1.4.1
go: finding github.com/derekparker/delve v1.3.1
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/lib/pq v1.2.0
go: finding github.com/gorilla/websocket v1.4.1
go: downloading github.com/derekparker/delve v1.3.1
go: extracting github.com/go-sql-driver/mysql v1.4.1
go: downloading github.com/lib/pq v1.2.0
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/gorilla/websocket v1.4.1
go: extracting github.com/fsnotify/fsnotify v1.4.7
go: extracting github.com/gorilla/websocket v1.4.1
go: extracting github.com/lib/pq v1.2.0
go: extracting github.com/derekparker/delve v1.3.1
go: github.com/beego/bee imports
        github.com/beego/bee/cmd imports
        github.com/beego/bee/cmd/commands/dlv imports
        github.com/derekparker/delve/service: github.com/derekparker/delve@v1.3.
1: parsing go.mod:
        module declares its path as: github.com/go-delve/delve
                but was required as: github.com/derekparker/delve

Here is my go env

C:\Users\Administrator>go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOENV=C:\Users\Administrator\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\Android\gopath
set GOPRIVATE=
set GOPROXY=https://goproxy.io,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessag
e-length=0 -fdebug-prefix-map=C:\Users\ADMINI~1\AppData\Local\Temp\go-build67801
0326=/tmp/go-build -gno-record-gcc-switches

@lanseyujie
Copy link

export GO111MODULE=off && go get -u github.com/beego/bee

@jiftle
Copy link
Author

jiftle commented Sep 14, 2019

resovle:

  1. git clone and go build

@zangdale
Copy link

zangdale commented Sep 14, 2019

关闭了GO111MODULE=off,可以了

@titanseason
Copy link

I do't think set GO111MODULE=off is a proper solution

@zjxpcyc
Copy link

zjxpcyc commented Oct 7, 2019

怎么可能关闭 GO111MODULE 呢。看了 https://stackoverflow.com/questions/55430150/go111module-on-error-loading-module-requirements 的解决方案,我这边依然没卵用

@keob
Copy link

keob commented Oct 8, 2019

正准备修这个,目前发现是github.com/derekparker/delve@v1.3.1这个版本太高了要切换到v0.12.1,并且地址是错误的。但是这个delve v0.12.1版本目前的问题是import的地址是derekparker/delve而项目却切换到了https://github.com/go-delve/delve/,导致无法下载。不是GO111MODULE=off的原因。

@keob
Copy link

keob commented Oct 8, 2019

已经修复了,正准备加pr

@finology
Copy link

同样的问题,还没有修复吗?

@keob
Copy link

keob commented Dec 20, 2019

travis过不了,自己编译了一份

@lutfuahmet
Copy link

I do't think set GO111MODULE=off is a proper solution

yeah. if we set off, bee is not running outside of gopath.

@ZhouRouHui
Copy link

讲真,我也是关闭了 GO111MODULE 就可以了

@Shaun-wang
Copy link

Shaun-wang commented Mar 10, 2020

set GO111MODULE=off,it works!
1
go 1.13.8

@wcc4869
Copy link

wcc4869 commented Mar 11, 2020

还是没有修复

@vincent-Lvys
Copy link

set GO111MODULE=off 然后下载是可以的,不过有点慢,要耐心点,个人愚见,可能是没有和go mod 整合在一起

@Scharfsinnig
Copy link

2020年5月份了,问题还存在。😂😂😂

@fighthorse
Copy link

居然还是坏的 为啥这么久了 没有人修复呢? 是这个beego框架 不行了么? 还能被新手选用么

@hantmac
Copy link

hantmac commented May 18, 2020

居然还是坏的 为啥这么久了 没有人修复呢? 是这个beego框架 不行了么? 还能被新手选用么

尽量别用了(摊手)

Jeremy-boo pushed a commit to Jeremy-boo/bee that referenced this issue May 22, 2020
@492162921
Copy link

新手同样问题。

@BestPei
Copy link

BestPei commented Jun 5, 2020

醉了,消磨新手耐心

@kurosakisora
Copy link

vim go.mod, add this fixed.

replace github.com/derekparker/delve => github.com/go-delve/delve v1.4.0 // indirect

@askuy
Copy link
Collaborator

askuy commented Jun 20, 2020

support go mod

@askuy askuy closed this as completed Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.