dounong5373 2016-09-03 13:29
浏览 24

如何在Windows中为Golang配置滑行(用于供应商软件包)

After making the project in Mac, I just want to configure it in windows

machine.For that how can i install glide in windows 8.1 for run go project.

-Thanks

  • 写回答

2条回答 默认 最新

  • dongyun6835 2016-09-03 14:38
    关注

    You can download the Window's glide binary from their Github releases page and toss it under your path.

    But you can always build it from source if you already got go installed.

    1. Clone this repository into $GOPATH/src/github.com/Masterminds/glide and change directory into it
    2. If you are using Go 1.5 ensure the environment variable GO15VENDOREXPERIMENT is set, for example by running export GO15VENDOREXPERIMENT=1. In Go 1.6 it is enabled by default and in Go 1.7 it is always enabled without the ability to turn it off.
    3. go build -o glide -ldflags "-X main.version=$(git describe --tags)" glide.go
    评论

报告相同问题?

悬赏问题

  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计