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
    评论

报告相同问题?