Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [go-modules]

A module is a collection of related Go packages. Modules are the unit of source code interchange and versioning. The go command has direct support for working with modules, including recording and resolving dependencies on other modules. Modules replace the old GOPATH-based approach to specifying which source files are used in a given build.

1 vote
1 answer
33 views

Go install, but repo and module declared are not a match

I was given access to a private repo on Github that is actually some cli tool written in Golang. I tried installing it like this: go install github.com/company-x/afctl@latest Which resulted in an ...
Gervasius Twinklewinkleson's user avatar
-3 votes
0 answers
46 views

Intellisense for Go in VS Code not working properly

I am experiencing issues with Intellisense for Go in VS Code. The suggestion bar and autocomplete features are not functioning. I have installed the latest Go tools and extensions by the Go team, but ...
Krish Sharma's user avatar
0 votes
3 answers
60 views

Same struct in two different packages Golang

I have this piece of code: import ( "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric-protos-go/common" "github.com/hyperledger/fabric-protos-go/...
André Avelar's user avatar
2 votes
2 answers
50 views

Building with Fyne - cannot find -lopengl32: No such file or directory

I'm trying to set up an application using Fyne, starting with just the basic template it gives. However, when building the application I get this message, and nothing runs: PS C:\Users\kmall\OneDrive\...
Kyle Malling's user avatar
1 vote
1 answer
64 views

GoLand project in a submodule directory can't find `go.mod` file in parent directory. Can a submodule GoLand project integrate with rest of module?

I have a small monorepo of Go code (as well as node/js/ts/vue/etc for frontend applications, but that should be irrelevant). There is a single go.mod in the repo root directory. I'm trying to create ...
crunk1's user avatar
  • 2,692
-2 votes
1 answer
81 views

How do I make commit hash consumable on top of latest tag for go get command?

I'm working with the framework package (github.com/username/fmk) and I'm facing an issue with version resolution using go get. Current Release Process: Feature Branches: Developers create isolated ...
vignz.pie's user avatar
  • 199
2 votes
1 answer
78 views

Use private go module with gitlab ci Auto-DevOps for auto test

I use gitlab auto dev ops to deploy my project. I have a problem with auto tests(https://docs.gitlab.com/ee/topics/autodevops/stages.html#auto-test). In my project I use a go private module. The error ...
Hugo Gallet's user avatar
0 votes
1 answer
50 views

Is it possible to create a Go module as a fork of a non-Go repo?

Is it possible to create a Go module as a fork of a data-only non-Go module? For example, given the following non-Go repo with only data files: https://github.com/org1/repo1 is it possible to create ...
Grokify's user avatar
  • 16k
1 vote
1 answer
82 views

How to publish a Go package/module without publishing a git repo?

I want to publish a collection of go packages as 'my.domain.tld/something' Can I do it without running a git server on my domain? For example, can I just publish zip files and metadata at the domain ...
hasen's user avatar
  • 165k
-1 votes
1 answer
52 views

Unable to create Go language packages in subdirectories of the repository [closed]

I have created repositories under multiple subdirectories on a private GitLab that contain Go language packages. The hierarchy of the repository is below. https://mygitlab.example.com/grand-parent-org/...
user24837047's user avatar
2 votes
1 answer
39 views

go mod conflict with v2 pre-release

I am developing version 2 of my hap package, which is a HTTP API framework. Version 2 is not ready yet, and the latest release ls v2.0.0-alpha.2, like so: * 9319436 - bug fix, refined action error ...
xrfang's user avatar
  • 2,160
1 vote
0 answers
25 views

importing non-master go branch in another go repo

I have a service called at github.com/me/service and I import this in a worker github.com/me/worker. I pushed a branch to the service, say dev_branch and when I do: go get github.com/me/service@...
dezdichado's user avatar
0 votes
0 answers
48 views

Obtaining minimum required go version of remote go module

Is there a way to obtain minimum required go version of remote go module? I ran into a problem when updated all required modules to latest version that some of modules requires upper go version than ...
randomowo's user avatar
0 votes
0 answers
67 views

go get github.com/gofiber/fiber/v2 hang on go: downloading github.com/klauspost/compress v1.17.0

so I want to try fiber on go, but when I try to install the fiber go get github.com/gofiber/fiber/v2, the download process always hang on go: downloading github.com/klauspost/compress v1.17.0. I try ...
Amir's user avatar
  • 348
4 votes
0 answers
69 views

Error 'Cannot resolve directory' with personal public repository

I cloned the repository to a new computer. But there was such a problem: Cannot resolve directory 'my-repo' import ( "github.com/my-git/my-repo/internal/handlers" "github.com/my-git/...
maksonnie's user avatar
  • 733

15 30 50 per page
1
2 3 4 5
41