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
71
votes
11 answers

MINGW64 "make build" error: "bash: make: command not found"

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…
user5845158
15
votes
3 answers

How do i close database instance in gorm 1.20.0

As i have not found in Close() function with *gorm instance, any help would be appreciated dbURI := fmt.Sprintf("user=%s password=%s dbname=%s port=%s sslmode=%s TimeZone=%s", "username", "password", "dbname", "5432", "disable",…
Rohan Shukla
  • 533
  • 1
  • 4
  • 16
11
votes
2 answers

Glide cannot find package "." in

My project tree is $GOPATH/src/gillab.myfirm.ru/golang/rkn I try to use glide for get dependency glide install and I am stuck with a problem: [ERROR] Error scanning gitlab.myfirm.ru/golang/rkn/events: cannot find package "." in: …
user199588
  • 539
  • 2
  • 6
  • 21
10
votes
1 answer

exit status 128 while cloning the git repository while getting go package from Github location

I want to configure the GoLang GB compiler for the projects in my local. based on the documentation given in the url I am trying to get the gb compiler using the command its returning status code 128. I am unable to understand whats happening…
mayur rathi
  • 315
  • 1
  • 3
  • 7
9
votes
2 answers

How to use local versions of glide dependencies?

I'm working on a Go project that uses Glide for dependency management. I need to make changes to the project, but also to several dependencies used by the project. I need to test these changes together, before committing the alterations to each…
Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
8
votes
2 answers

Is it possible to use Go vendor libraries with Google App Engine?

I'm trying to deploy a small test app to Google App Engine (standard). I get an error if I include any vendor libraries. This is the error I get when trying to deploy % gcloud app deploy Services to deploy: descriptor: …
Matt
  • 81
  • 3
6
votes
1 answer

Not resolving dependency in vendor directory

I'm running go1.6 and am getting the follow error when running "go build" in GOPATH (/Users/bweidlich/Projects/go) main.go:6:2: cannot find package "github.com/spf13/viper" in any of: /usr/local/go/src/github.com/spf13/viper (from…
bjoern
  • 1,009
  • 3
  • 15
  • 31
5
votes
1 answer

How make go import packages from vendor?

I was checking the vendor feature in go with glide. It was awesome installing all packages but I couldn't manage to make go command to found them in the vendor packages. go run src/main.go src/main.go:8:2: cannot find package…
joaonrb
  • 965
  • 11
  • 30
3
votes
1 answer

How get Gorm Query Count Result

I want to get rows count for the selected user. I used gorm library. There is no any full example to identify how get count from the selected table. row = m.DB.Raw("SELECT count(*) as count FROM user_advertisement_categories uac WHERE uac.user_id…
user2552863
  • 483
  • 3
  • 10
  • 18
3
votes
1 answer

testcontainers-go: p.client.DaemonHost undefined

I am trying to add TestContainers-Go to my project. I use glide and TestNginxLatestReturn example from Github readme file. In glide I put - package: github.com/testcontainers/testcontainers-go version: v0.0.3 but at runtime I get this error in…
Nikolay Kuznetsov
  • 9,467
  • 12
  • 55
  • 101
3
votes
1 answer

how to install private repo using glide golang

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…
Bezos
  • 45
  • 9
3
votes
2 answers

golang Resource interpreted as Stylesheet but transferred with MIME type text/plain

I have a problem in developing my webpage using golang. server file (main.go): package main import ( "net/http" "io/ioutil" "strings" "log" ) type MyHandler struct { } func (this *MyHandler) ServeHTTP(w http.ResponseWriter, r…
2
votes
1 answer

missing cases in switch of type parsing.tokenType on golinter

So I have this code token := NextToken() switch token.Typ { case tokenEOF: return nil case tokenMentionTargetedControl: # do stuff default: return nil } my tokentype is a enum my golinter is throwing this error: missing cases in switch…
Raul Quinzani
  • 493
  • 1
  • 4
  • 16
2
votes
1 answer

Golang, importing csv and converting it to map

I have been trying to import a csv file in go and convert it into map function but having a lot of difficulties in doing that. The problems that I have been facing with this code is that a) The file not seeking to the beginning even when i have…
2
votes
2 answers

How do I bind a date string to a struct?

type TestModel struct { Date time.Time `json:"date" form:"date" gorm:"index"` gorm.Model } i'm using echo framwork, and I have a struct like the one above, and I get string data like '2021-09-27' , how can I bind it to the struct? func…
Choi yun seok
  • 309
  • 2
  • 15
1
2 3
8 9