go-modules Questions
2
Solved
How does one tag their repo, and get it to show up for go mod and/or pkg.go.dev?
I have converted one of my packages to go mod. However, it seems the go mod tool itself can only see very old versio...
Yardley asked 13/2, 2020 at 22:3
1
Solved
We are using private Bitbucket repositories to manage our Go libraries. By using the insteadOf config for git as described e.g. in this Stackoverflow answer, we had a working build up to Go version...
Yours asked 28/4, 2020 at 0:17
1
I have configured ssh properly and I can do git stuff with our private repo via ssh. But when I tested with go get or go test (for go modules) the cli is not using ssh but instead using https.
.g...
Plaintiff asked 7/4, 2020 at 2:35
1
Solved
For legal reasons, I need a list of licenses (e.g. MIT, Apache) the dependencies (direct and transient libraries) my project uses. I only know how to print a list of dependencies without licenses.
...
Unreasoning asked 5/4, 2020 at 9:44
2
It seems that the godoc tool is not Go modules aware.
A simple godoc -goroot=. serves the project files, but it does not generate documentation for the packages. I tested it from withing the proje...
Euglena asked 28/2, 2019 at 20:44
1
Solved
I want to import a module I have created into another project. The source code is in GitHub, in a public repo, but I get the following error when trying to import in GoLand:
go: finding module for...
Angele asked 23/3, 2020 at 8:55
1
Solved
I am using go version 1.13.1, and now I cannot update my dependecy module to the latest minor version using go mod, I made simple repo for learning dependency management on github.com/clavinjune/te...
Imprecate asked 13/10, 2019 at 15:23
2
Solved
I have installed the go language in my ubuntu using sudo apt install golang-go.
It was successfully installed. When i run go version I am getting go version go1.10.4 linux/amd64
but when i trie...
Wizardly asked 26/2, 2020 at 9:34
1
Solved
I'm trying to use grafana/grafana/pkg/tsdb package in my module. I don't think this problem is specific to grafana but here it goes:
$ go get -u github.com/grafana/grafana/pkg/tsdb
go: finding git...
Ilario asked 21/2, 2020 at 15:17
2
I am trying to create a microservice application, which depends on my net module which contains general errors (so i don't have to "replicate" them across all of my modules).
The issue is that fo...
Ridgley asked 9/12, 2019 at 1:50
1
Solved
I have a Go package—call it foo—I've built around some existing C code, and I'm trying to determine how best to distribute it.
A bit of background... Here's a simplified version of my ...
Nuclei asked 14/1, 2020 at 21:6
1
Solved
Just 3 days experience in Go language. Hope an example will be more apt to understand my confusion.
root@freebsd1:/usr/home/arun/go-start/src/test2 # go mod init f1/f2/f3/f4/f5/hello
go: creating n...
Spokeshave asked 13/1, 2020 at 14:25
1
Overall go modules works just like the docs say. But, in one case, a dependent lib's latest tag is v1.3.0 which go mod tidy finds. However I need v1.1.0. No matter what I do (hand edit go.mod, go g...
Pendergast asked 18/12, 2019 at 4:37
3
Solved
I'm currently using Dep and would like to start using Go modules.
How do I migrate?
Entropy asked 13/4, 2019 at 10:49
4
Solved
My coworker pushed a tag v3.0.1 before updating go.mod to have /v3 suffix (https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher). I have updated module path (go.mod) and all imp...
Cumuliform asked 22/7, 2019 at 10:14
1
I need to import a module with LFS objects into my go project. I already added the module to go.mod, but when the go tools download the dependencies into my ~/go/pkg/... folder, the LFS objects are...
Home asked 8/10, 2019 at 6:5
3
Solved
I'm using goczmq in my project, something like next:
main.go:
package main
import (
_ "github.com/zeromq/goczmq"
)
func main() {
}
And more, I'm using golang 1.12 with gomod to manage my pro...
Seagraves asked 5/8, 2019 at 9:41
1
Solved
Given the following go.mod file:
module foo
go 1.12
require (
github.com/bar/baz v1.0.0
github.com/rat/cat v1.0.0
)
What does the go 1.12 indicate? Does it prevent compiling the foo module a...
Aframe asked 2/10, 2019 at 15:25
1
It seems that the way modules are used since 1.11 has changed , and I am trying to understand how to reference a module / package from another directory.
Lets say I have a folder structure
\root\m...
Spinney asked 15/9, 2019 at 0:57
1
I'm trying to build my go project in the docker container.
Here is the dockerfile:
FROM golang:1.12.9 as builder
ENV GO111MODULE=on
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download...
Endolymph asked 27/8, 2019 at 14:37
1
Solved
I am using a mono repo and I download certain tools under the project tree (istio). Running go get -u or go mod tidy causes the main go.mod to get updated with irrelevant deps.
How do I exclude c...
Castaway asked 23/8, 2019 at 16:16
1
Solved
I have a go.mod file that looks like this:
module someName
go 1.13
require (
.
.
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4
localpackage v0.0.0
)
replace localpackage => ../lo...
Gonfanon asked 22/8, 2019 at 13:38
1
Solved
I have a project in which two dependencies uses different version of same library. For instance, my project has dependency A and dependency B. A and B, both uses a common library/dependency X, but ...
Hoppe asked 22/8, 2019 at 4:25
2
Solved
In a multi-module repository, should a module name (set via the go.mod module directive) follow the conventions of package naming?
E.g. module github.com/org-name/repo-name/path/to/module-dir
I u...
Gifford asked 5/7, 2019 at 11:39
1
I’m trying to figure out if it’s possible to run go mod vendor without the go tool updating my go.mod file.
I specifically go get package/subpackage@commit and commit my go.mod with the correct ve...
Polly asked 2/4, 2019 at 4:42
© 2022 - 2024 — McMap. All rights reserved.