On Mon, Dec 18, 2023 at 2:19 PM Brijesh Wawdhane <brij...@wawdhane.com> wrote:
> I added a go-import meta tag to my git server's website on the repo page and it looks like > > <meta name="go-import" content="brijesh.dev/kairos git https://brijesh.dev/kairos.git"> > > but when I try running "go get brijesh.dev/kairos" I get an error saying 'go: unrecognized import path "brijesh.dev/kairos": reading https://brijesh.dev/kairos?go-get=1: 404 Not Found' > > it is probably because it is looking at https://brijesh.dev/kairos?go-get=1(which is invalid) and not https://brijesh.dev/kairos.git?go-get=1(the correct address) even though it the url is with .git in the go-import tag I'm not sure what is correct, but FTR this redirector service reports the redirected URL without the .git suffix and it works as intended: ---- jnml@3900x:~/tmp$ wget modernc.org/sqlite --2023-12-18 14:57:40-- http://modernc.org/sqlite Resolving modernc.org (modernc.org)... 216.239.34.21, 216.239.32.21, 216.239.38.21, ... Connecting to modernc.org (modernc.org)|216.239.34.21|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://modernc.org/sqlite [following] --2023-12-18 14:57:40-- https://modernc.org/sqlite Connecting to modernc.org (modernc.org)|216.239.34.21|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 577 [text/html] Saving to: 'sqlite' sqlite 100%[=============================================================================================================>] 577 --.-KB/s in 0s 2023-12-18 14:57:41 (20.6 MB/s) - 'sqlite' saved [577/577] jnml@3900x:~/tmp$ cat sqlite <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <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}"> <meta http-equiv="refresh" content="0; url= https://godoc.org/modernc.org/sqlite"> </head> <body> Redirecting to docs at <a href="https://godoc.org/modernc.org/sqlite"> godoc.org/modernc.org/sqlite</a>... </body> </html> jnml@3900x:~/tmp$ ---- -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-We%3D%3Dsm812yorAgKgH8hZmM2Akm3P%2BpzpJR9dLD%2BfNV6w%40mail.gmail.com.