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

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

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度