go get 报错

错误内容:

unexpected directory layout:
    import path: github.com/gin-gonic/gin
    root: /Users/lulu/workspace/dev/go/src
    dir: /Users/lulu/workspace/dev/go/src/lark_dashboardapis_basic_public/vendor/github.com/gin-gonic/gin
    expand root: /Users/lulu/workspace/dev/go/src
    expand dir: /Users/lulu/workspace/dev/go/src/lark_dashboardapis_basic_public/vendor/github.com/gin-gonic/gin
    separator: /

原因是gopath目录是两个目录

/Users/lulu/workspace/dev/go/src/lasdasd:/Users/lulu/workspace/dev/go

如下改成一个就好了

/Users/lulu/workspace/dev/go

文章来源于互联网,如有雷同请联系站长删除:go get 报错 unexpected directory layout

发表评论