Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go mod tidy results in a strange error #72147

Closed
vault-thirteen opened this issue Mar 6, 2025 · 2 comments
Closed

go mod tidy results in a strange error #72147

vault-thirteen opened this issue Mar 6, 2025 · 2 comments
Labels
BugReport Issues describing a possible bug in the Go implementation.

Comments

@vault-thirteen
Copy link

vault-thirteen commented Mar 6, 2025

Go version

go version go1.23.7 windows/amd64

Output of go env in your module/workspace:

set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\***\AppData\Local\go-build
set GOENV=C:\Users\***\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=G:\Projects\Go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=G:\Projects\Go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=G:/Projects/Go/SDK/go1.23.7
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=G:\Projects\Go\SDK\go1.23.7\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.23.7
set GODEBUG=
set GOTELEMETRY=local
set GOTELEMETRYDIR=C:\Users\***\AppData\Roaming\go\telemetry
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=G:\Projects\Go\src\github.com\vault-thirteen\HttpStreamDumper\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\***\AppData\Local\Temp\go-build3637229552=/tmp/go-build -gno-record-gcc-switches

What did you do?

  1. Open a project.

  2. Use an existing package with existing version (git tag) in a go.mod file.

module github.com/vault-thirteen/HttpStreamDumper

go 1.23

require github.com/vault-thirteen/auxie v0.28.4

require (
	github.com/kr/pretty v0.3.1 // indirect
	github.com/kr/text v0.2.0 // indirect
	github.com/rogpeppe/go-internal v1.14.1 // indirect
)

Source:
https://github.com/vault-thirteen/HttpStreamDumper/blob/main/go.mod

  1. Run go mod tidy.

P. S.

You can ensure that a package exists at the following link:
https://github.com/vault-thirteen/auxie/releases/tag/v0.28.4

To me it looks like something is broken in the Golang infrastructure server which is on sum.golang.org. For some reason it does not see the existing GitHub repository with existing git tag.

What did you see happen?

An error.

G:\Projects\Go\src\github.com\vault-thirteen\HttpStreamDumper> go mod tidy

go: downloading github.com/vault-thirteen/auxie v0.28.4
go: github.com/vault-thirteen/HttpStreamDumper imports
github.com/vault-thirteen/auxie/Versioneer: github.com/vault-thirteen/[email protected]: verifying module: github.com/vault-thirteen/[email protected]: reading https://sum.golang.org/lookup/github.com/vault-thirteen/[email protected]: 404 Not Found
server response:
not found: github.com/vault-thirteen/[email protected]: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/7270d5251280f08e44f19b89cad90bda55004afe9118e404c41808fa458457b9: exit status 128:
fatal: unable to access 'https://github.com/vault-thirteen/auxie/': Failed to connect to github.com port 443: Connection refused
go: github.com/vault-thirteen/HttpStreamDumper/dumper imports
github.com/vault-thirteen/auxie/errors: github.com/vault-thirteen/[email protected]: verifying module: github.com/vault-thirteen/[email protected]: reading https://sum.golang.org/lookup/github.com/vault-thirteen/[email protected]: 404 Not Found
server response:
not found: github.com/vault-thirteen/[email protected]: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/7270d5251280f08e44f19b89cad90bda55004afe9118e404c41808fa458457b9: exit status 128:
fatal: unable to access 'https://github.com/vault-thirteen/auxie/': Failed to connect to github.com port 443: Connection refused

What did you expect to see?

No error.

@vault-thirteen
Copy link
Author

I would like to add that GitHub works fine. The repository is accessible from my computer.

Image

Image

@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation.
Projects
None yet
Development

No branches or pull requests

3 participants