-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.
Description
Go version
go version go1.25.0 windows/amd64
Output of go env
in your module/workspace:
set AR=ar
set CC=gcc
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_ENABLED=0
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set CXX=g++
set GCCGO=gccgo
set GO111MODULE=
set GOAMD64=v1
set GOARCH=amd64
set GOAUTH=netrc
set GOBIN=
set GOCACHE=C:\Users\zzc\AppData\Local\go-build
set GOCACHEPROG=
set GODEBUG=
set GOENV=C:\Users\zzc\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFIPS140=off
set GOFLAGS=
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\zzc\AppData\Local\Temp\go-build3589672939=/tmp/go-build -gno-record-gcc-switches
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMOD=E:\gitea_ws\test_go\test_2\go.mod
set GOMODCACHE=C:\Users\zzc\go\pkg\mod
set GONOPROXY=private.zhao1012112796.top
set GONOSUMDB=private.zhao1012112796.top
set GOOS=windows
set GOPATH=C:\Users\zzc\go
set GOPRIVATE=private.zhao1012112796.top
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\Program_Files\go
set GOSUMDB=sum.golang.org
set GOTELEMETRY=local
set GOTELEMETRYDIR=C:\Users\zzc\AppData\Roaming\go\telemetry
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=D:\Program_Files\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.25.0
set GOWORK=
set PKG_CONFIG=pkg-config
What did you do?
go mod tidy -v -x
What did you see happen?
output:
go: finding module for package private.zhao1012112796.top/testg/test_repo
# get https://private.zhao1012112796.top/testg?go-get=1
# get https://private.zhao1012112796.top/testg/test_repo?go-get=1
# get https://private.zhao1012112796.top/?go-get=1
# get https://private.zhao1012112796.top/testg/test_repo?go-get=1: 200 OK (0.031s)
# get https://private.zhao1012112796.top/?go-get=1: 200 OK (0.031s)
get "private.zhao1012112796.top/testg/test_repo": found meta tag vcs.metaImport{Prefix:"private.zhao1012112796.top/testg/test_repo", VCS:"git", RepoRoot:"https://private.zhao1012112796.top/testg/test_repo.git", SubDir:"haha"} at //private.zhao1012112796.top/testg/test_repo?go-get=1
mkdir -p C:\Users\zzc\go\pkg\mod\cache\vcs # git3 https://private.zhao1012112796.top/testg/test_repo.git
# lock C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3.lock
# C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3 for git3 https://private.zhao1012112796.top/testg/test_repo.git
cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git config extensions.objectformat
# get https://private.zhao1012112796.top/testg?go-get=1: 200 OK (0.036s)
0.017s # cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git config extensions.objectformat
cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git ls-remote -q origin
0.064s # cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git ls-remote -q origin
cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' dc9e48481e66a763985351a6c1276a4701cc7698 --
0.018s # cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' dc9e48481e66a763985351a6c1276a4701cc7698 --
cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git for-each-ref --format %(refname) refs/tags --merged dc9e48481e66a763985351a6c1276a4701cc7698
0.020s # cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git for-each-ref --format %(refname) refs/tags --merged dc9e48481e66a763985351a6c1276a4701cc7698
cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' dc9e48481e66 --
0.017s # cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git -c log.showsignature=false log --no-decorate -n1 '--format=format:%H %ct %D' dc9e48481e66 --
cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git cat-file blob dc9e48481e66a763985351a6c1276a4701cc7698:haha/go.mod
0.016s # cd C:\Users\zzc\go\pkg\mod\cache\vcs\77054afae63cbb57d438e03e37c62470cbdab339bba361937e2b4fdc7de818a3; git cat-file blob dc9e48481e66a763985351a6c1276a4701cc7698:haha/go.mod
go: test_a imports
private.zhao1012112796.top/testg/test_repo: module private.zhao1012112796.top/testg/test_repo@latest found (v0.0.0-20250814091442-dc9e48481e66), but does not contain package private.zhao1012112796.top/testg/test_repo
in main.go
package main
import (
"fmt"
"private.zhao1012112796.top/testg/test_repo"
)
func main() {
fmt.Println(test_repo.Haha(1, 2))
}
the download result:

What did you expect to see?
success
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.