Re: [go-nuts] Re: go install of forked repo

2022-12-04 Thread 'Christian Stewart' via golang-nuts
I definitely fork things and use "replace" quite frequently. When forking something you have to tell Go where to find it, that's what "replace" is for. There's a issue about using replaces in `go install` without a go.mod: https://github.com/golang/go/issues/44840 On Sun, Dec 4, 2022 at 11:40 P

Re: [go-nuts] Re: go install of forked repo

2022-12-04 Thread Volker Dobler
On Sunday, 4 December 2022 at 15:13:46 UTC+1 ren...@ix.netcom.com wrote: > Can’t you use a replace directive to use the fork ? > No, not in the general case. V. > > On Dec 4, 2022, at 6:17 AM, Volker Dobler wrote: > > You cannot use a "fork". The Github concept of a "fork" doesn't > > work

Re: [go-nuts] Re: Why not tuples?

2022-12-04 Thread Kevin Chowski
If you really need anonymous tuple types that support decoding that sort of JSON, it isn't too hard to write one: https://go.dev/play/p/Fn_wUXh2drs Go's generics don't support varargs types (...yet? who knows) so there'd be a little copypasta if you needed many different tuple lengths, but Java

Re: [go-nuts] HTTPS proxy issue using CONNECT method

2022-12-04 Thread Mauro Monteiro
Hello Sean The proxy is a HTTPS proxy which exposes an endpoint that ONLY accepts HTTP CONNECT method. The code checks with the HTTP method informed is CONNECT and then it tries to establish the TCP connection with the target informed. Otherwise the request is rejected. Therefore, the proxy is

Re: [go-nuts] Re: go install of forked repo

2022-12-04 Thread Robert Engels
Can’t you use a replace directive to use the fork ? > On Dec 4, 2022, at 6:17 AM, Volker Dobler wrote: > > You cannot use a "fork". The Github concept of a "fork" doesn't > work together with the concept of a Go module. > You are free to fork a repo and you can modify the source > after git clo

[go-nuts] Re: go install of forked repo

2022-12-04 Thread Volker Dobler
You cannot use a "fork". The Github concept of a "fork" doesn't work together with the concept of a Go module. You are free to fork a repo and you can modify the source after git cloning your "fork" you even can build the "fork" and go install it's binaries by simply running go install inside of th