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

traverse vanity urls for repository location for license url #32

Closed
KnicKnic opened this issue Jul 7, 2020 · 1 comment
Closed

traverse vanity urls for repository location for license url #32

KnicKnic opened this issue Jul 7, 2020 · 1 comment

Comments

@KnicKnic
Copy link

KnicKnic commented Jul 7, 2020

I ran against github.com/google/go-licenses and noticed that vanity urls weren't traversed for their corresponding github url.
see below for - cannot determine URL for "gopkg.in/warnings.v0" package
curl.exe https://gopkg.in/warnings.v0?go-get=1
yeilds
<meta name="go-source" content="gopkg.in/warnings.v0 _ https://github.com/go-warnings/warnings/tree/v0.1.2{/dir} https://github.com/go-warnings/warnings/blob/v0.1.2{/dir}/{file}#L{line}">

PS C:\Users\nmaliwa\go\src\github.com\google\go-licenses> .\go-licenses.exe csv .
E0706 20:48:36.424458   30424 csv.go:87] Error discovering URL for "C:\\Users\\nmaliwa\\go\\pkg\\mod\\gopkg.in\\[email protected]\\LICENSE":
- cannot determine URL for "gopkg.in/warnings.v0" package
E0706 20:48:36.576080   30424 csv.go:87] Error discovering URL for "C:\\Users\\nmaliwa\\go\\pkg\\mod\\golang.org\\x\\[email protected]\\LICENSE":
- unsupported package host "golang.org" for "golang.org/x/tools"
E0706 20:48:36.601091   30424 csv.go:87] Error discovering URL for "C:\\Users\\nmaliwa\\go\\pkg\\mod\\gopkg.in\\src-d\\[email protected]\\LICENSE":
- unsupported package host "gopkg.in" for "gopkg.in/src-d/go-git.v4"
E0706 20:48:36.728275   30424 csv.go:87] Error discovering URL for "C:\\Users\\nmaliwa\\go\\pkg\\mod\\golang.org\\x\\[email protected]\\LICENSE":
- unsupported package host "golang.org" for "golang.org/x/crypto"
E0706 20:48:36.741540   30424 csv.go:87] Error discovering URL for "C:\\Users\\nmaliwa\\go\\pkg\\mod\\gopkg.in\\src-d\\[email protected]\\LICENSE":
- unsupported package host "gopkg.in" for "gopkg.in/src-d/go-billy.v4"
E0706 20:48:36.813157   30424 csv.go:87] Error discovering URL for "C:\\Users\\nmaliwa\\go\\pkg\\mod\\golang.org\\x\\[email protected]\\LICENSE":
- unsupported package host "golang.org" for "golang.org/x/sys/windows"
E0706 20:48:36.827165   30424 csv.go:87] Error discovering URL for "C:\\Users\\nmaliwa\\go\\pkg\\mod\\golang.org\\x\\[email protected]\\LICENSE":
- unsupported package host "golang.org" for "golang.org/x/net"
github.com/google/licenseclassifier/stringclassifier,https://github.com/google/licenseclassifier/blob/master/stringclassifier/LICENSE,Apache-2.0        
github.com/sergi/go-diff/diffmatchpatch,https://github.com/sergi/go-diff/blob/master/diffmatchpatch/LICENSE,MIT
gopkg.in/warnings.v0,Unknown,BSD-2-Clause
github.com/otiai10/copy,https://github.com/otiai10/copy/blob/master/LICENSE,MIT
github.com/golang/glog,https://github.com/golang/glog/blob/master/LICENSE,Apache-2.0
golang.org/x/tools,Unknown,BSD-3-Clause
gopkg.in/src-d/go-git.v4,Unknown,Apache-2.0
golang.org/x/crypto,Unknown,BSD-3-Clause
gopkg.in/src-d/go-billy.v4,Unknown,Apache-2.0
golang.org/x/sys/windows,Unknown,BSD-3-Clause
golang.org/x/net,Unknown,BSD-3-Clause
github.com/mitchellh/go-homedir,https://github.com/mitchellh/go-homedir/blob/master/LICENSE,MIT
github.com/spf13/cobra,https://github.com/spf13/cobra/blob/master/LICENSE.txt,Apache-2.0
github.com/inconshreveable/mousetrap,https://github.com/inconshreveable/mousetrap/blob/master/LICENSE,Apache-2.0
github.com/google/go-licenses,https://github.com/google/go-licenses/blob/master/LICENSE,Apache-2.0
github.com/google/licenseclassifier,https://github.com/google/licenseclassifier/blob/master/LICENSE,Apache-2.0
github.com/spf13/pflag,https://github.com/spf13/pflag/blob/master/LICENSE,BSD-3-Clause
github.com/src-d/gcfg,https://github.com/src-d/gcfg/blob/master/LICENSE,BSD-3-Clause
github.com/jbenet/go-context/io,https://github.com/jbenet/go-context/blob/master/io/LICENSE,MIT
github.com/emirpasic/gods,https://github.com/emirpasic/gods/blob/master/LICENSE,BSD-2-Clause
github.com/kevinburke/ssh_config,https://github.com/kevinburke/ssh_config/blob/master/LICENSE,MIT
github.com/xanzy/ssh-agent,https://github.com/xanzy/ssh-agent/blob/master/LICENSE,Apache-2.0
@Bobgy
Copy link
Collaborator

Bobgy commented Apr 10, 2022

Fixed in #94

@Bobgy Bobgy closed this as completed Apr 10, 2022
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

2 participants