glide-golang

Running dep ensure -vendor-only inside Docker Hangs not able to pull private Repos

不羁的心 提交于 2020-01-06 08:58:31
问题 My Dockerfile: FROM golang:1.11.4 RUN apt-get update && apt-get install git bash curl -yqq ENV ENV test ENV GIT_TERMINAL_PROMPT=1 ENV GITHUB_TOKEN XXXXXXXXXXXXXXXXXX 
 RUN curl -Ls https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz | tar xz -C /tmp \ && mv /tmp/linux-amd64/glide /usr/bin/ RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh RUN mkdir -p $GOPATH/src/github.com/<Myrepo>/ COPY . $GOPATH/src/github.com/<Myrepo>/

how to install private repo using glide golang

大城市里の小女人 提交于 2020-01-05 05:53:28
问题 I am using glide as package management for my golang project. I can't able to get private repositories using glide get bezos.gitlab.com/gomock . It asks username & password even i give correct credentials, it ended up throwing error. Please suggest any idea. 回答1: It is nothing do with glide or any other package management tools. You have to set create and set gitlab access token in your git http.extraheader. Go to your gitlab settings -> access token and create new access token, make sure to

fixing versions of tools used by go

与世无争的帅哥 提交于 2019-12-04 06:23:56
问题 I am looking to create reproducible builds with go. For individual projects we are using glide. So for example I use: glide get github.com/stretchr/testify to fix the version of the "testify" package. This does not work for tools however. For example: glide install github.com/tebeka/go2xunit returns success but does not actually install go2xunit so I have to use: go get github.com/tebeka/go2xunit which installs go2xunit to $GOPATH/bin . Q How can I fix the version of tools like go2xunit? I

MINGW64 “make build” error: “bash: make: command not found”

白昼怎懂夜的黑 提交于 2019-12-03 16:29:48
问题 I am working on Windows 10. I want to run a "make build" in MINGW64 but following error comes up: $ make build bash: make: command not found I want to build Glide for Golang I tried following: $ sudo yum install build-essential bash: sudo: command not found As well as: $ yum install build-essential bash: yum: command not found And: $ apt-cyg build-essential bash: apt-cyg: command not found How can I "work-around" this problem? 回答1: You have to install mingw-get and after that you can run

MINGW64 “make build” error: “bash: make: command not found”

你。 提交于 2019-12-03 05:43:56
I am working on Windows 10. I want to run a "make build" in MINGW64 but following error comes up: $ make build bash: make: command not found I want to build Glide for Golang I tried following: $ sudo yum install build-essential bash: sudo: command not found As well as: $ yum install build-essential bash: yum: command not found And: $ apt-cyg build-essential bash: apt-cyg: command not found How can I "work-around" this problem? DistordAngel You have to install mingw-get and after that you can run mingw-get install msys-make to have the command make available. Here is a link for what you want

fixing versions of tools used by go

风格不统一 提交于 2019-12-02 10:01:46
I am looking to create reproducible builds with go. For individual projects we are using glide. So for example I use: glide get github.com/stretchr/testify to fix the version of the "testify" package. This does not work for tools however. For example: glide install github.com/tebeka/go2xunit returns success but does not actually install go2xunit so I have to use: go get github.com/tebeka/go2xunit which installs go2xunit to $GOPATH/bin . Q How can I fix the version of tools like go2xunit? I also note that glide says use dep instead and dep says golang has diverged from its implementation and