Questions tagged [glide-golang]

Glide is obsolete, use Go Modules instead! Glide is a package manager for Go that is conceptually similar to package managers for other languages such as Cargo for Rust, NPM for Node.js, Pip for Python, Bundler for Ruby, and so forth.

!! Don't use Glide !!

Glide has been obsoleted by Go Modules for many years now. Use Go Modules instead.

Homepage

Github

Documentation

132 questions
0
votes
2 answers

Right Golang vendoring tool

I want to have all of my dependencies under source control alongside my projects in Go. I can see there two main tools to do the job ( Dep and Glide ). The problem is Dep States on its page that : dep was the "official experiment." The Go…
Matias Barrios
  • 4,674
  • 3
  • 22
  • 49
0
votes
2 answers

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

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…
Javeed Shakeel
  • 2,926
  • 2
  • 31
  • 40
0
votes
1 answer

Vendoring problem from Opencensus Libraries for Golang

I'm having problem while vendoring my go-project. Tried with both glide and go-dep - getting same problem. $ go get -u go.opencensus.io gives the following error: package go.opencensus.io/opencensus-go: unrecognized import path…
kfoozminus
  • 136
  • 9
0
votes
1 answer

checked out version doesn't match glide.lock

i checked out a Golang project using glide, and there is a glide.lock file in the repo. >>git clone https://github.com/uber/aresdb >>cd aresdb/ >>git checkout v0.0.1 >>glide i ... [INFO] --> Found desired version locally…
sqr
  • 365
  • 2
  • 12
  • 29
0
votes
1 answer

Read GoLang Command Line Argument After Enter is pressed from shell script

So I am using a OSS written in go which I don't have any exposure to. I am trying to automate that script. SO this is how the script works calling_go_code Message for confirmation of user Get user input execute the code. I am trying to automate this…
onkar
  • 4,427
  • 10
  • 52
  • 89
0
votes
0 answers

Facing an issue with go-openapi/analysis library using glide

I was trying to install the go-openapi/analysis using the glide. Using the glide up -v command for installing. Glide version v0.13.2 and go version 1.11 glide.yaml package: abc import: - package: github.com/go-openapi/analysis version: 0.16.0 Got…
Seenu S
  • 3,381
  • 6
  • 30
  • 45
0
votes
0 answers

Facing an issue in setup docker distribution library using glide

I have been trying to set up the github.com/docker/distribution/ library in my local machine using the glide up -v. I have other dependent libraries kubernetes, openshift with docker. Installing setup if failing. I was getting the following…
Seenu S
  • 3,381
  • 6
  • 30
  • 45
0
votes
1 answer

How to force dependencies to be installed from local directory

I have an app hosted in Heroku, and I use glide to collect dependencies when deploying the app. The problem is that I have one library, namely, gonum.org/v1/gonum, that cannot be downloaded the standard way. Is it possible to somehow force glide to…
user2082616
  • 195
  • 1
  • 17
0
votes
0 answers

Why does proto marshal then unmarshal fail when it is run outside of project containing vendor directory?

I have a main.go file that uses the proto files in pkg/models to Marshal and Unmarshal a proto struct like this: // Convert to string protoStr := proto.MarshalTextString(proto) // Unmarshal string back to proto struct var proto2 models.Stuff err :=…
chuy
  • 23
  • 5
0
votes
1 answer

Client stuck when trying to read with io.CopyN() in golang

I am trying to make TCP server for transferring files. I am suing io.CopyN for reading and writing. From server side, I am sending files to client so from server side, it sends perfectly all bytes but Client side after reading a couple of 1000000…
0
votes
1 answer

Golang & Postgres Interaction - Subtract 1 From int64 Table Every Query

I'm learning to create HTTP API's, I'm creating a dummy API credit system, as that's what I'm interested in specifically. This is what i came up with: (I'm using PQ Driver) if !dummy.creds <= 0 { c.JSON(404, gin.H{ "success": false, …
0
votes
1 answer

Go with Glide - vendor doesnt work

I am using go version go1.10.3 darwin/amd64 with glide version v0.13.1 Project is located at /Users/robopuff/Development/GoRethink and it's tree looks like this: . ├── glide.lock ├── glide.yaml ├── main.go ├── rethinkdb_data │ ├──…
retest
  • 9
  • 1
  • 3
0
votes
1 answer

Image Duplication Recyclerview

Adapter class public class ItemAdapter extends RecyclerView.Adapter { private RecyclerviewListener mlistener; private Context context; private ArrayList data = new ArrayList<>(); public ItemAdapter(Context…
0
votes
1 answer

Patch Function in Shim Interface for golang

I am using hyperledger fabric services via golang with the shim package. It has GetState, PutState, DelState. Get is used to retrieve a data linked to a key. Put is used to create/update the body of a data linked to a key I want to ask, how will I…
Parth Rathod
  • 71
  • 1
  • 4
0
votes
2 answers

Missing type in composite literal while working with string[][] in map in golang

This is my code: package main import ( "fmt" ) type person struct { //name [][]string{}; name [][]string } func main() { var people = map[string]*person{} people["first person"] = &person{name:{{"My name","30"}}} …
nagulan
  • 41
  • 2
  • 3
1 2 3
8 9