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

是否可以支持go get #2

Closed
en opened this issue Jul 30, 2016 · 5 comments
Closed

是否可以支持go get #2

en opened this issue Jul 30, 2016 · 5 comments

Comments

@en
Copy link

en commented Jul 30, 2016

既然现在不依赖gvp/gvm了,是不是可以改下目录结构来支持go get
只要设定好了GOPATH, 直接
go get -u github.com/gonet2/{agent,game}
就可以clone并安装好agent和game
方便快速的体验

@xtaci
Copy link
Contributor

xtaci commented Aug 2, 2016

可以,我尽快修改结构

@xtaci
Copy link
Contributor

xtaci commented Aug 2, 2016

@en 已经完全改为标准layout

@en
Copy link
Author

en commented Aug 2, 2016

@xtaci 路径貌似有问题,不知道这些影不影响ci那边

ys@archlinux ~ $ echo $GOPATH
/home/ys/go
ys@archlinux ~ $ go get -u github.com/gonet2/{agent,game,snowflake}
package agent/client_handler: unrecognized import path "agent/client_handler" (import path does not begin with hostname)
package agent/misc/packet: unrecognized import path "agent/misc/packet" (import path does not begin with hostname)
package agent/pb: unrecognized import path "agent/pb" (import path does not begin with hostname)
package agent/types: unrecognized import path "agent/types" (import path does not begin with hostname)
package agent/utils: unrecognized import path "agent/utils" (import path does not begin with hostname)
package game/client_handler: unrecognized import path "game/client_handler" (import path does not begin with hostname)
package game/misc/packet: unrecognized import path "game/misc/packet" (import path does not begin with hostname)
package game/proto: unrecognized import path "game/proto" (import path does not begin with hostname)
package game/registry: unrecognized import path "game/registry" (import path does not begin with hostname)
package game/types: unrecognized import path "game/types" (import path does not begin with hostname)
package snowflake/etcdclient: unrecognized import path "snowflake/etcdclient" (import path does not begin with hostname)
package snowflake/proto: unrecognized import path "snowflake/proto" (import path does not begin with hostname)

@xtaci
Copy link
Contributor

xtaci commented Aug 2, 2016

go get 还是有点问题,但是编译没有问题。

@yiv
Copy link

yiv commented Feb 17, 2017

go get没有问题,只是需要把所有<"game*>和<"agent*>开头的包引用全替换成<"github.com/gonet2/game*>和<"github.com/gonet2/agent*>

@en en closed this as completed Oct 11, 2023
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

No branches or pull requests

3 participants