660 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Tooling
0
votes
1
replies
71
views
Matching compression libraries between GO and NPM
For context:
I have 2 projects of next.js and go respectively, previously I had a logic to compress some data in next.js backend (getServerSideProps) then send this data to next.js client side and ...
Tooling
0
votes
2
replies
85
views
How to use a go package (SDK) locally in another project without pushing it to git for faster development
I am working on two Go projects at the same time, let's call the first one myApp and the second one my-sdk , both are seperate Golang projects. Both myApp and my-sdk are under development at the same ...
1
vote
2
answers
102
views
Installing go module from private repository leads to strange error
I'm new to Golang and go modules. I was trying to get module from private repository:
go get -v gitlab.project.tech/global/back/common/[email protected]
And I got this message:
get "gitlab.project....
0
votes
0
answers
45
views
Upgrading apiextensions-apiserver to v0.30.10 bumps k8s deps to v0.32.2; how to keep them at v0.30.10 (no replace)?
In my project, all the k8s-related libraries are currently at version v0.26.6:
k8s.io/api v0.26.6
k8s.io/apiextensions-apiserver v0.26.6
k8s.io/apimachinery v0.26.6
k8s.io/apiserver v0.26.6
k8s.io/...
3
votes
1
answer
337
views
Dependabot vendor configuration for `gomod` package-ecosystem
I am referring the optional references that I can specify in my dependabot.yaml file from Optional reference for dependabot
As per the documentation, it is said that I can enable vendor for package-...
2
votes
0
answers
95
views
Getting SIGQUIT: quit when running go mod tidy
While running go mod tidy on my prod build, I am seeing the below error, intermittently.
go: downloading google.golang.org/grpc v1.56.3
go: downloading google.golang.org/protobuf v1.33.0
go: ...
-3
votes
1
answer
2k
views
Golang no packages found for open file sodium
I'm trying to use sodium library in golang, module github.com/jamesruan/sodium.
After imported it I added it to go.work file, otherwise nothing works and I really can't understand why.
go.work:
go 1....
-2
votes
1
answer
156
views
After go mod init, I get GOROOT error importing my packages
I really hate to post this as a question because it's so trivially elementary. But I've wasted too many hours.
I'm in Linux Mint and VS CODE. Trying to do the simplest Hello World level example now.
I'...
-3
votes
1
answer
486
views
Checksum mismatch error when building with golang.org/x/[email protected]
I have a go project, and when I do go build I get the following checksum error from the Golang crypto package:
% go build cmd/myproject/main.go
go: downloading github.com/golang-jwt/jwt v4.5.1+...
-1
votes
1
answer
89
views
VS Code get `BrokenImport` error when I use `replace` in `go.mod` with local require development
VS code gives the following error when I use replace in go.mod:
could not import github.com/ilKhr/protos (no required module provides package ‘github.com/ilKhr/protos’)
project directory structure
/...
0
votes
1
answer
2k
views
go get is always returning: no matching versions for query "upgrade"
This started after I consolidated several repositories and go packages into one repository and package.
Here is the message:
go: github.com/sty-holdings/sharedServices/2024: no matching versions for ...
0
votes
1
answer
80
views
go get a subdirectory with private azure repo
I want to require a specific module of a private azure repository. The module is in a subdirectory of said repository. This results in a required module that contains an undesired [...].git/[...] in ...
1
vote
1
answer
644
views
BzlMod + Golang = missing package and incorrect function
Trying to move my messy golang libraries over to bzlmod I found the rules_go reference, but was having trouble with external dependencies (I'd never used go.mod before and so prior stuff was messy).
...
2
votes
2
answers
2k
views
go mod returns 404 while curl returns 200 OK or how to debug go mod
I have a problem that may seems trivial, but I spend hours solving it and nothing helps.
First of all, I cannot reproduce it anywhere but on my machine.
For some reason go mod gets 404 instead of 200 ...
-2
votes
1
answer
101
views
Cannot Import Function in Module with Golang workspace [closed]
What I need
I can write almost all the functions in the module I created, except the one thing I need most is undefined... I really need to use this function
Directory and files
Directory Hierarchy
...