gomods / athens

A Go module datastore and proxy
https://docs.gomods.io
MIT License
4.38k stars 492 forks source link

Proxy gitlab subgroup project error with "no go-import meta tags " #1713

Open redwolf2019 opened 3 years ago

redwolf2019 commented 3 years ago

Describe the bug When I use athens v0.11.0 proxy gitlab subgroup project ,athens server and gitlab server was in same LAN network and can reach each other. but actually,i can't proxy to gitlab repo.here is error msg:

Error Message

INFO[5:04AM]: exit status 1: go list -m: xinao.undepartment.com@latest: unrecognized import path "xinao.undepartment.com": parse https://xinao.undepartment.com/?go-get=1: no go-import meta tags ()
        http-method=GET http-path=/xinao.undepartment.com/@v/list kind=Not Found module= operation=download.ListHandler ops=[download.ListHandler pool.List protocol.List vcsLister.List] request-id=f23602d3-a4e6-4a9d-8b9b-cd6bbd03e694 version= 
INFO[5:04AM]: incoming request  http-method=GET http-path=/xinao.undepartment.com/@v/list http-status=404 request-id=f23602d3-a4e6-4a9d-8b9b-cd6bbd03e694 

To Reproduce run go get failed:

export GOPROXY="http://192.168.0.252:3000"

go get -v xinao.undepartment.com/m8/backend-common/go-common
go get: module xinao.undepartment.com/m8/backend-common/go-common: reading http://192.168.0.252:3000/xinao.undepartment.com/m8/backend-common/go-common/@v/list: 404 Not Found

Expected behavior success download gitlab private repo

Environment (please complete the following information):

Additional context

Look forward to your reply :)

umdstu commented 2 years ago

I believe the same thing is happening with my setup. @redwolf2019 did you ever get this resolved?