build问题-go import cycle not allowed

SaintIC 发布于 2015/06/03 17:42
阅读 3K+
收藏 0

@UlricQin 你好,想跟你请教个问题:

[root@saint4 builder]# go get ./...
package github.com/dinp/builder
imports runtime: C source files not allowed when not using cgo: atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c mcentral.c mem_linux.c mfixalloc.c mgc0.c mheap.c msize.c os_linux.c panic.c parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c stack.c string.c sys_x86.c vdso_linux_amd64.c
import cycle not allowed
package github.com/dinp/builder
imports github.com/astaxie/beego
imports github.com/astaxie/beego/context
imports github.com/astaxie/beego/session
imports github.com/astaxie/beego/utils
imports mime/multipart
imports net/textproto
imports net
imports runtime/cgo
imports runtime/cgo


加载中
0
UlricQin
UlricQin
这个代码好久没动了,可能是 beego 最近升级了
0
SaintIC
SaintIC
大哥,求解决方法?
0
UlricQin
UlricQin

把$GOPATH/src下面的内容清空重新试试,之前的循环引用可能是依赖的某个package升级出bug了,我刚才测试已经没问题了


返回顶部
顶部