go-modules Questions
3
Good day! I try to migrate from glide to go modules (private gitlab repos)
and checkout code via ssh
I have a simple project with an import from private gitlab repo.
go.mod looks like:
module my...
Daron asked 25/12, 2019 at 12:47
3
Solved
I usually set a passphrase in my ssh keys so that, in case of it gets compromised, I might get some time to rotate to a new one.
However, when working with go modules, I noticed that when executing...
Unwitting asked 22/10, 2021 at 19:11
3
Solved
I just want to use a local package using go modules.
I have these files in a folder goweb:
and go.mod
module goweb
go 1.12
require mypack v0.0.0
replace mypack => ./src/mypack
But go.m...
Rossini asked 5/4, 2019 at 11:2
7
Solved
I am following the tutorial (https://golang.org/doc/tutorial/getting-started) to get started using Go and I've already run into a problem. When I run the following code:
package main
import "...
Petal asked 20/10, 2020 at 9:21
7
Solved
I am creating a go project with version 1.12.1.
If I run GOPATH="$(pwd)/vendor:$(pwd)" GOBIN="$(pwd)/bin" go clean I get the following error:
can't load package: package github.com/marvincaspar/go...
Sagittarius asked 11/4, 2019 at 11:36
5
Solved
Using this module as an example (using a specific commit so others will see
what I see):
git clone git://github.com/walles/moar
Set-Location moar
git checkout d24acdbf
I would like a way to tell G...
Romeu asked 21/4, 2021 at 18:39
2
Solved
I'm trying to compare the behavior of go mod tidy (and the resulting content of go.sum) to the output of go list -m all.
Reading the docs, I understand go.sum contains the whole list of dependent m...
Originality asked 26/11, 2021 at 17:24
4
I have used vscode 1.41.1 on my mac for a few months and it worked good until I started to use go modules for dependency management. At the moment I am rewriting a simple tool and introduce package...
Lorrimor asked 14/1, 2020 at 11:13
14
When I import "golang.org/x/net/route"
It tells me:
"build constraints exclude all Go files in go/src/golang.org/x/net/routego"
I am using VSCode on Windows/Linux.
I searched on...
Melessa asked 26/3, 2019 at 1:4
6
What is the proper way to upgrade the go version in a go mod, specifically 1.13 to 1.14?
Do you simply edit the go.mod file and change go 1.13 to go 1.14?
I'm not asking about how to edit the go.m...
Yuhas asked 13/3, 2020 at 18:15
5
We are converting our internal codebase from the dep dependency manager to go modules (vgo or built in with go1.11.2). Imagine we have code like this:
$GOPATH/src/mycompany/myprogram/main.go:
pac...
Volumetric asked 28/11, 2018 at 9:39
10
Solved
I recently started using modules in Go, but I frequently encounter issues where everything works fine on one machine, but a checksum mismatch is encountered when building the codebase on another ma...
Patentor asked 10/1, 2019 at 17:15
4
I published an update to a Go module, bumping the version to v1.1.0. I created a tag named v1.1.0 and pushed the tag to GitHub.
https://github.com/depp/bytesize/releases/tag/v1.1.0
However, I canno...
Ellerey asked 24/5, 2021 at 19:53
4
Solved
Using the buffalo framework,
after bootstraping it via buffalo new <project_name>
I am trying to run buffalo dev
Expecting to see:
project running on port 3000
But I am getting those error ...
Sturges asked 21/4, 2021 at 21:20
3
Solved
I'm having issues with go's new module system, as I'd like to define a local module and import it in the main program. The local package resides in a folder of the main package/root folder. Imagine...
Ribbing asked 29/8, 2018 at 14:16
3
Solved
I've installed a package using go modules (go get in Go 1.13) and now I want to remove it. In the documentation there is nothing about this and in go get docu neither.
Removing the package from go...
Hayleyhayloft asked 24/7, 2019 at 15:42
4
Solved
I'm encountering what probably seems to be a Gopls language server issue: All my external package import statements are being marked as incorrect when using Go Modules with the Go extension in VSCo...
Invest asked 30/5, 2021 at 16:19
2
Currently I am working on an API which uses Serverless Framework with Go.
I'm using the Serverless-offline plugin for local testing.
This API depends on a few other repositories (which I also maint...
Jadda asked 12/8, 2021 at 22:2
2
Solved
I'm using Go 1.13.1, latest as of today.
I'm trying to completely remove a package that I installed with go get from GitHub. The go clean -i <PACKAGE_NAME> didn't seem to work, since there a...
Vyner asked 3/10, 2019 at 18:9
3
Solved
I have two dependencies in my project.
go.mod:
module github.com/test-org/test-repo
go 1.12
require (
github.com/foo/bar v1.0.0
github.com/raz/mataz v1.0.0
)
After running go mod download...
Decaliter asked 16/9, 2019 at 7:44
4
Solved
I started working on a Go project and it uses some private modules from Github private repos and whenever I try to run go run main.go it gives me a below 410 Gone error:
verifying github.com/rep...
Shawannashawl asked 9/10, 2019 at 13:42
2
As a work requirement learning gRPC through an online course.
I have a project defined in folder greet (outside of GOPATH) with three packages called:
greet_client
greet_server
greetpb
In the go...
Canasta asked 7/8, 2020 at 6:31
3
I can't really grasp the purpose of having a vendor folder. Based on what I learned, it seems the vendor folder is only beneficial if you're trying to make your repo compatible with golang ve...
Inning asked 1/5, 2020 at 17:25
3
Solved
Go version: 1.12.9
Here is the structure of a simple demo project:
So we have a module domain, which contains two modules: activity and person.
I would like to use domain with all nested modules i...
Leukas asked 5/9, 2019 at 13:0
1
In short, my current use-case involves dynamically creating a Golang plugin inside a Docker container. The compilation involves some new input from the user (which is why it is not compiled beforeh...
Villalpando asked 23/12, 2022 at 2:20
1 Next >
© 2022 - 2024 — McMap. All rights reserved.