Golang: Go get not working

Summary

There is a problem with basic authentitacion that is fixed on this MR in the comunity edition: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23497

Can this be cherry-picked into the enterprise edition?

Steps to reproduce

calling my private repo usign go-get, it returns the wrong git repo

curl https://gitlab.com/Beamery/DevOps/gotalker?go-get=1
<html><head><meta name="go-import" content="gitlab.com/Beamery/DevOps git https://gitlab.com/Beamery/DevOps.git" /></head></html>

Example Project

  • https://gitlab.com/Beamery/DevOps/gotalker?go-get=1
  • https://gitlab.com/dion-maingroup/dion-subgroup/privaterepo?go-get=1

What is the current bug behavior?

it returns the parent directory

What is the expected correct behavior?

it should return the correct repo url:

curl https://gitlab.com/Beamery/DevOps/gotalker?go-get=1
<html><head><meta name="go-import" content="gitlab.com/Beamery/DevOps/gotalker git https://gitlab.com/Beamery/DevOps/gotalker.git" /></head></html>

Relevant logs and/or screenshots

curl https://gitlab.com/Beamery/DevOps/gotalker?go-get=1
<html><head><meta name="go-import" content="gitlab.com/Beamery/DevOps/gotalker git https://gitlab.com/Beamery/DevOps/gotalker.git" /></head></html>

Output of checks

curl https://gitlab.com/Beamery/DevOps/gotalker?go-get=1
<html><head><meta name="go-import" content="gitlab.com/Beamery/DevOps/gotalker git https://gitlab.com/Beamery/DevOps/gotalker.git" /></head></html>

Results of GitLab environment info

I am using the paid version

Results of GitLab application Check

Possible fixes

cherry pick this fix from the community edition: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23497

(If you can, link to the line of code that might be responsible for the problem)

Assignee Loading
Time tracking Loading