Re: [go-nuts] Need help running "go get" on self hosted git server

2023-12-28 Thread Brijesh Wawdhane
I was able to make it work 
(and no the server is healthy)

I am using legit (https://github.com/icyphox/legit) for my git frontend, it 
is like cgit or stagit if you've those before. The default route for repo 
page in legit is domain.extension/repository.git, but because running legit 
is basically cloning it and running 'go build' I changed the code slightly 
to check if there is no .git at end of url then instead of returning 404 it 
should show code for webpage with the .git extension added.

This wouldn't be an issue if I was creating bare git repositories on server 
without the .git in its name, but I switched from using gitolite to 
soft-serve to handle users on the server.

On Tuesday 19 December 2023 at 01:02:50 UTC+5:30 Dan Kortschak wrote:

> On Sun, 2023-12-17 at 07:06 -0800, Brijesh Wawdhane wrote:
> > I added a go-import meta tag to my git server's website on the repo
> > page and it looks like
> > 
> > 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
>
> If you go to the page for the repo[1] with a browser and attempt to
> follow the link for the commit[2], it gives a 404, so the server seems
> sick.
>
> [1]https://brijesh.dev/kairos.git
> [2]
> https://brijesh.dev/kairos/commit/fa700f82d14a5a319cb6267a7dbde994683067ca
>
>

-- 
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/9fc27767-06bb-4025-bacf-9a86d51d875en%40googlegroups.com.


Re: [go-nuts] Need help running "go get" on self hosted git server

2023-12-18 Thread 'Dan Kortschak' via golang-nuts
On Sun, 2023-12-17 at 07:06 -0800, Brijesh Wawdhane wrote:
> I added a go-import meta tag to my git server's website on the repo
> page and it looks like
> 
> 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

If you go to the page for the repo[1] with a browser and attempt to
follow the link for the commit[2], it gives a 404, so the server seems
sick.

[1]https://brijesh.dev/kairos.git
[2]https://brijesh.dev/kairos/commit/fa700f82d14a5a319cb6267a7dbde994683067ca

-- 
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/5106cb1b23fdd2547486156e05c6910122ce9e0a.camel%40kortschak.io.


Re: [go-nuts] Need help running "go get" on self hosted git server

2023-12-18 Thread Jan Mercl
On Mon, Dec 18, 2023 at 2:19 PM Brijesh Wawdhane 
wrote:

> I added a go-import meta tag to my git server's website on the repo page
and it looks like
>
> 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/sin 0s

2023-12-18 14:57:41 (20.6 MB/s) - 'sqlite' saved [577/577]

jnml@3900x:~/tmp$ cat sqlite




https://gitlab.com/cznic/sqlite;>
https://gitlab.com/cznic/sqlite/blob/master{/dir}
https://gitlab.com/cznic/sqlite/blob/master{/dir}/{file}#L{line};>
https://godoc.org/modernc.org/sqlite;>


Redirecting to docs at https://godoc.org/modernc.org/sqlite;>
godoc.org/modernc.org/sqlite...


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.


[go-nuts] Need help running "go get" on self hosted git server

2023-12-18 Thread Brijesh Wawdhane
I added a go-import meta tag to my git server's website on the repo page 
and it looks like

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

-- 
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/5a2e814b-3e80-4604-9946-636fd077b4c0n%40googlegroups.com.