go-modules Questions
1
I am trying to convert https://github.com/appscode/voyager from glide to go mod.
I am getting an error like below:
go: github.com/Sirupsen/[email protected]: parsing go.mod: unexpected modul...
Nerve asked 8/5, 2019 at 1:59
2
Solved
I forked a go module, and want to use the fork in my project that uses versioned modules via v1.12. My code is not inside my GOPATH.
My project's go.mod:
module github.com/me/myproj
go 1.12
re...
Rad asked 19/6, 2019 at 15:20
2
Solved
I can not find a way to factor out some code from main.go into a local package when using Go modules (go version >= 1.11) outside of $GOPATH.
I am not importing any external dependencies that need...
Rica asked 31/3, 2019 at 16:15
1
Solved
In dep you have the option to override a dependency and have it point to a different repo for example in the following https://github.com/kubermatic/glog-logrus library one needs to add the followi...
Lurlinelusa asked 30/7, 2019 at 7:1
1
Solved
tl;dr A repo formerly configured to use GOPATH is now configured for Modules. All's good and better. However, protoc correctly (!) generates Golang code for protobufs defined within the repo in a g...
Interlard asked 10/7, 2019 at 21:19
1
Solved
I am using Go-modules for a project. When I retrieve the dependency for a package, it retrieves an old release. How can I get the code in the master branch?
Ic asked 1/6, 2019 at 16:26
1
Solved
I'm currently working something on AWS Cloudformation which using this repo https://github.com/awslabs/goformation. Because I did some customise so I made a fork https://github.com/vrealzhou/goform...
Seiler asked 14/5, 2019 at 2:7
2
Following the release of Go 1.11, I have been trying to move my repositories to Go modules, by adding a go.mod file at their root.
One of my root libraries my.host/root is in its version 17.0.1, s...
Rosy asked 28/8, 2018 at 4:34
1
Solved
I am having issues trying to deploy a Google cloud function in Go 1.11 using Go modules. I have have the following code structure in my GOPATH:
└── example
├── models
│ ├── go.mod
│ └── mod...
Proper asked 28/1, 2019 at 22:4
1
Before I used go dep, but now office ensure the official tool is go mod.
When I use go dep, I can add local dependency packages to vendor and ignored in Gopkg.toml to ignore search the package fro...
Combustible asked 3/12, 2018 at 6:48
1
I understand Go Modules are yet an experimental opt-in feature, and perhaps because of that, I cannot find clear guidance on how to name directories and packages.
In these Package names in Go Blog ...
Salon asked 21/11, 2018 at 1:40
1
Solved
I have been converting existing projects from using vendored dependencies via Glide, to using the Go 1.11.x module support. But I am hitting a particular case in one project using modules that I ca...
Nanananak asked 2/10, 2018 at 1:30
1
Solved
I am migrating some code to work with Go 1.11 modules, and I am able to build it from the shell but not in Docker.
Relevant Dockerfile sections:
WORKDIR /goscout
COPY ["go.mod", "go.sum", "./"]
R...
Sisto asked 1/10, 2018 at 19:45
2
Solved
I am migrating a Go 1.10 app to Go 1.11. This also includes migrating from dep to mod for managing dependencies.
As the application depends on a database, I am using a docker-compose to set up the...
Weakling asked 26/8, 2018 at 12:18
1
Solved
I've upgraded a project to Go 1.11 and enabled module support for my project, but it seems that CircleCI is re-downloading the dependencies on every build. I know CircleCI allows caching between re...
Boylan asked 29/8, 2018 at 17:6
© 2022 - 2024 — McMap. All rights reserved.