What is the easiest way to find out the source hosting url of a thrid-party dependency module/package?

54 views
Skip to first unread message

tapi...@gmail.com

unread,
Apr 8, 2021, 11:17:56 AM4/8/21
to golang-nuts

It looks such info is not recorded in GOPATH/pkg/mod.

Jan Mercl

unread,
Apr 8, 2021, 11:25:55 AM4/8/21
to tapi...@gmail.com, golang-nuts
On Thu, Apr 8, 2021 at 5:18 PM tapi...@gmail.com <tapi...@gmail.com> wrote:

> It looks such info is not recorded in GOPATH/pkg/mod.

Do you mean the import path to repository URL mapping?

jnml@e5-1650:~/tmp$ wget modernc.org/sqlite && grep go- sqlite
--2021-04-08 17:23:49--  http://modernc.org/sqlite
Resolving modernc.org (modernc.org)... 216.239.32.21, 216.239.38.21, 216.239.36.21, ...
Connecting to modernc.org (modernc.org)|216.239.32.21|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://modernc.org/sqlite [following]
--2021-04-08 17:23:49--  https://modernc.org/sqlite
Connecting to modernc.org (modernc.org)|216.239.32.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 577 [text/html]
Saving to: 'sqlite'

sqlite                                            100%[=============================================================================================================>]     577  --.-KB/s    in 0s      

2021-04-08 17:23:49 (10.8 MB/s) - 'sqlite' saved [577/577]

<meta name="go-import" content="modernc.org/sqlite git https://gitlab.com/cznic/sqlite">
<meta name="go-source" content="modernc.org/sqlite _ https://gitlab.com/cznic/sqlite/blob/master{/dir} https://gitlab.com/cznic/sqlite/blob/master{/dir}/{file}#L{line}">
jnml@e5-1650:~/tmp$

tapi...@gmail.com

unread,
Apr 8, 2021, 11:40:40 AM4/8/21
to golang-nuts
Ah. I forgot this way. Thanks for the tip!
Reply all
Reply to author
Forward
0 new messages