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

Detect Go module VCS #22

Open
tamalsaha opened this issue Jun 17, 2020 · 1 comment
Open

Detect Go module VCS #22

tamalsaha opened this issue Jun 17, 2020 · 1 comment

Comments

@tamalsaha
Copy link
Collaborator

tamalsaha commented Jun 17, 2020

curl -vv https://stash.appscode.dev/cli?go-get=1

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="stash.appscode.dev/cli git https://github.com/stashed/cli">
<meta name="go-source" content="stash.appscode.dev/cli https://github.com/stashed/cli https://github.com/stashed/cli/tree/master{/dir} https://github.com/stashed/cli/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://godoc.org/stash.appscode.dev/cli/">
</head>
<body>
Nothing to see here; <a href="https://godoc.org/stash.appscode.dev/cli/">see the package on godoc</a>.
</body>
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* Connection #0 to host stash.appscode.dev left intact
</html>
@tamalsaha
Copy link
Collaborator Author

The content attribute has three parts:
The root of the import path.
The VCS command to use.
The remote path to pass to the VCS command that corresponds to the root of the import path.

https://github.com/golang/go/blob/1102616/src/cmd/go/internal/get/vcs.go#L753

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant