drqefnd544707688 2016-06-27 17:50
浏览 54
已采纳

在$ GOPATH之外进行销售

I have a project which is built in Node.js/Express.js. I want to start to rewrite this to go/iris framework. I don't want to re-factor everything into my $GOPATH and I want to keep it together my express / go / docker files for this project.

I tried to clone iris framework's git repo into a ./vendor subfolder, but using import "github.com/kataras/iris" importing nothing.

Is there a package manager which is

  • copying and installing packages and all of it's dependencies in my-project/vendor folder outside $GOPATH

  • it can update these import packages

  • go run/build/install outside $GOPATH

  • there's now any new files in $GOPATH src/pkg/bin folder when I working on a project, except this package manager

  • I can define dependency packages for a project like package.json file for node.js

Is there a go package manager like that?

Edit:

Running this with go command is not required.

  • 写回答

1条回答 默认 最新

  • douduoyan5943 2018-05-14 16:18
    关注

    Not possible with the current go tooling, but looks like we might get it in go 1.12 or bit later.

    Proposal accepted:

    cmd/go: modify the Go toolchain to work without GOPATH

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 链接问题 C++LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接