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

Import repositories from GitHub to GitLab #28958

Closed
senad004 opened this issue Nov 26, 2018 · 3 comments
Closed

Import repositories from GitHub to GitLab #28958

senad004 opened this issue Nov 26, 2018 · 3 comments

Comments

@senad004
Copy link

Team,
I am trying to import repositories from GitHub to GitLab using Git URL . but getting below error
fatal: Could not read Password for 'https://*****@github.jparrowsec.cnpany.com': terminal prompts disabled

Appreciate your help on this.

@andybons
Copy link
Member

andybons commented Nov 26, 2018

Thanks. This is a known issue.
Duplicate of #26232

@senad004
Copy link
Author

Hi Can you please help me to share few basic details about this issue? Issue #26232 is confusing me .

@andybons
Copy link
Member

If you run go get rsc.io/2fa, it makes a request to https://rsc.io/2fa?go-get=1 which returns the following:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="rsc.io/2fa git https://github.com/rsc/2fa">
<meta http-equiv="refresh" content="0; url=https://godoc.org/rsc.io/2fa">
</head>
<body>
Redirecting to docs at <a href="https://godoc.org/rsc.io/2fa">godoc.org/rsc.io/2fa</a>...
</body>
</html>

It uses the <meta name="go-import" content="rsc.io/2fa git https://github.com/rsc/2fa"> tag to determine how to get the code per https://golang.org/cmd/go/#hdr-Remote_import_paths

https://rsc.io/2fa?go-get=1 MUST return the meta tag in order for the go command to determine how to retrieve the code. If it's behind any authentication, it will fail since go get doesn't have any concept of authentication (that's what the duped issue is about).

@golang golang locked and limited conversation to collaborators Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants