Questions tagged [goproxy]
17 questions
20
votes
2 answers
module lookup disabled by GOPROXY=off, but go env shows GOPROXY is set
When trying to lookup some modules, I am having an issue from VS Code where the error pictured below indicates that my GOPROXY is set to off, but when I run go env, I see that GOPROXY is actually…

Andrew Smith
- 483
- 1
- 3
- 16
3
votes
2 answers
Manually Download and Place a golang mod file
I am in China and I am compiling a program on linux. The problem is that golang related things are blocked in China. I have tried many proxies but I can't find a solutuion. Can some one please explain me where to manually put this file. I can open…

user2077875
- 35
- 5
3
votes
0 answers
Unknown gRPC error with no error message - gRPC-web and goproxy
I'm trying to build a web application with the following stack:
Flutter/Dart
Go/goproxy
gRPC
MongoDB
I was able to successfully define and compile a protobuf into Dart and Go, however now that I'm trying to integrate the UI with the backend, I am…

Sal
- 1,471
- 2
- 15
- 36
2
votes
1 answer
how to run a go get command with certain environment values?
I want to run a go get command when GOPROXY='direct', I've tried to run this command using the VS code terminal:
GOPROXY='direct' go get go.mongodb.org/mongo-driver/mongo
but I'm getting this error:
GOPROXY=direct : The term 'GOPROXY=direct' is not…

siba36
- 45
- 9
2
votes
1 answer
Download only private modules from internal go proxy and get the public ones from the an external proxy
I got started with migrating a Go project to use modules for dependency management. My company has an internal go proxy that hosts PRIVATE modules ONLY. So, I need a way to download the PRIVATE modules from the internal proxy, let say…

Aditya Vikas Devarapalli
- 3,186
- 2
- 36
- 54
1
vote
2 answers
Force proxy server to resolve a domain to a custom Ip
I have a goproxy (github.com/elazarl/goproxy) server running locally
proxy := goproxy.NewProxyHttpServer()
http.ListenAndServe(":4242", proxy)
I'm proxying my requests through it, for some domains i'd like to resolve them to a custom IP for both…

aksh02
- 178
- 1
- 8
1
vote
0 answers
400 error on publishing go dependencies in Jfrog artifactory
We are trying to publish some go dependencies in jfrog artifactory using the below command:
jf go-publish v1.2.3 --self=false --deps=ALL
with jfrog cli account config:
Server ID: demo-go-repo-local
JFrog platform URL: …

Mohit
- 43
- 5
1
vote
0 answers
dial tcp: lookup goproxy.cn: i/o timeout when build my own Docker image
I am building a Docker image of my own with VPN connected
I consistently encounter the error :dial tcp: lookup goproxy.cn: i/o timeout.
I searched for the answer , seems like I need a proxy in order to access the github and download go pakage, which…

Jia
- 2,417
- 1
- 15
- 25
1
vote
1 answer
"400 Bad Request" when using remote repository of Golang
I have set up a Golang remote repository named "golang-remote" which points to https://proxy.golang.org.
When I tried to use it with go getby setting the GOPROXY to https:///artifactory/api/go/golang-remote, I got the error…

mayer
- 77
- 1
- 7
1
vote
1 answer
x509 cert error when using GOPROXY in Dockerfile
Seems like this should be easy but for some reason I'm making heavy weather of it.
I have private (corp) network that is giving me GOPROXY services:
"https://my.corp.network/repository/golang"
In my Dockefile I have:
ENV…

Robert Campbell
- 303
- 3
- 12
0
votes
1 answer
understanding "go mod vendor"
What is the purpose of "go mod vendor". I thought with vendoring packages will not be stored in module cache. However, if I understand correctly, I think this is not correct since we need to update go.mod first before "go mod vendor" by either "go…

M.S.
- 63
- 5
0
votes
0 answers
Defined GOPROXY not being used
I'm trying to download artifacts from github.com through my company proxy for go artifacts. Below is the command I've defined in the docker file for downloading buf
RUN…

Aarish Ramesh
- 6,745
- 15
- 60
- 105
0
votes
0 answers
Make a SOCKS5 proxy with AWS EC2
I want create proxy SOCKS5 from AWS EC2 server. I'm use this guide: https://github.com/vifreefly/ec2_proxies
My progress through the guide has come to the point where the script creates the server, adds SSH keys to AWS, then goes on to create the…

klipsoN
- 1
0
votes
1 answer
Is it possible to set GOPROXY=/file.. in Linux
I'm having a trouble mapping some go modules imported from github.com locally in an offline environment. I thought of changing GOPROXY into a file path, that contains the folder of the previously installed packages. Is that possible?
Thanks!
OS:…

M Al
- 1
0
votes
0 answers
[Windows]go get github.com/gin-gonic/gin failed with connectex: A connection attempt failed
Code:
package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.Default()
r.Handle("GET", "/ping", func(context *gin.Context) {
context.JSON(200, gin.H{
"message": "pong",
})
})
r.Run()…

lubanseven
- 1
- 1