Re: [go-nuts] go install, replace directive any ongoing discussions?

2021-03-06 Thread Paul Jolly
>> I missed the conversation originally. however go install has been left in a >> unfortunate state where it bewilderingly errors out when the main module >> contains a replace directive. > > This sounds like a bug. I would file an issue with an easy reproduction case. Erroring on replace direct

Re: [go-nuts] go install, replace directive any ongoing discussions?

2021-03-06 Thread 'Axel Wagner' via golang-nuts
On Sun, Mar 7, 2021 at 3:45 AM James Lawrence wrote: > I missed the conversation originally. however go install has been left in > a unfortunate state where it bewilderingly errors out when the main module > contains a replace directive. > This sounds like a bug. I would file an issue with an ea

[go-nuts] go install, replace directive any ongoing discussions?

2021-03-06 Thread James Lawrence
I missed the conversation originally. however go install has been left in a unfortunate state where it bewilderingly errors out when the main module contains a replace directive. I'm primarily wondering where I should be going to contribute to that conversation and if there is someone on the go

Re: [go-nuts] should I pass functions as parameter of a go routine?

2021-03-06 Thread Max Renaud
In your second example, the address of wg doesn't change with each iteration so you can use: for _, onedoer := range d { go func(od *doer) { od.do(&wg) }(onedoer) } https://play.golang.org/p/A1dAUuyvg9T On Thursday, March 4, 2021 at 8:50:19 AM UTC-8 Julien Pivotto wrote: > Thank you for your qu

Re: [go-nuts] Incompatibility of reflection libraries (reflect versus go-reflect), on json-iterator (Go 1.15.8)

2021-03-06 Thread Yan Titarenko
CC'ing to Mikko/Justin/taowen/Johannes/Aaron. In case if they would be interested to explain about reflect2's usage. I tried to patch rook - and here is what I got: https://github.com/advancedwebdeveloper/rook https://gist.github.com/advancedwebdeveloper/52be86fa92fd9ed484ef26f5cbfc541c pkg/apis