[go-nuts] Re: go mod download fails on docker for 1.20 (but not for 1.18)

2023-05-21 Thread TheDiveO
? base system distribution? ? do you have IPv6 connectivity at all? ? which docker version? On Monday, May 22, 2023 at 2:29:08 AM UTC+2 Joao Miguel Ferreira wrote: > Hello all, > > My docker build is ok with FROM golang:1.18-alpine, FROM > golang:1.18-buster and FROM golang:1.18-bullseye images.

[go-nuts] Re: glog: how to add wrapper to log sinks ? Maybe move glog/internal/logsync out of internal ?

2023-05-21 Thread Jan
A bit more of search and I found klog , which conveniently already provides SetLogFilter , which resolves the issue. cheers Jan ps.: s/logsync/logsink -- sorry. On Monday, May 22, 2023 at 7:30:11 AM UTC+2 Jan

[go-nuts] glog: how to add wrapper to log sinks ? Maybe move glog/internal/logsync out of internal ?

2023-05-21 Thread Jan
hi, I want to add a prefix to the glog lines based on certain conditions of my program. Browsing the glog code I found an example that seems exactly for that in package `glog/internal/logsync`: https://github.com/golang/glog/blob/master/internal/logsink/logsink.go#L369 But unfortunately it

Re: [go-nuts] go mod download fails on docker for 1.20 (but not for 1.18)

2023-05-21 Thread 'Jim Idle' via golang-nuts
My guess is that IPV6 is disabled in your containers. If you use docker run -it xxx yyy -c "ip -6 addr show dev eth0; ip -6 route show" Then you can find out if that is the case. On Mon, May 22, 2023 at 8:29 AM Joao Miguel Ferreira < joao.miguel.c.ferre...@gmail.com> wrote: > Hello all, > > My

[go-nuts] go mod download fails on docker for 1.20 (but not for 1.18)

2023-05-21 Thread Joao Miguel Ferreira
Hello all, My docker build is ok with FROM golang:1.18-alpine, FROM golang:1.18-buster and FROM golang:1.18-bullseye images. The application works. All is fine on the 3 cases. But the docker build fails with FROM golang:1.20-alpine, FROM golang:1.20-buster and FROM golang:1.20-bullseye images.

Re: [go-nuts] Idiomatic distribute-process-collect pattern

2023-05-21 Thread Andrew Harris
The recipe on 10:26 should work but it's definitely contrived - using Fetch looks strange to me, and the cancellation behavior of errgroup is another moving part that adds some overhead. If it's sufficient, Ian's solution groks better :) On Sunday, May 21, 2023 at 7:38:31 AM UTC-7 Tobias Klaus

Re: [go-nuts] Idiomatic distribute-process-collect pattern

2023-05-21 Thread Tobias Klausmann
Hi! First off, thanks both Ian and Andrew! On Sat, 20 May 2023, Ian Lance Taylor wrote: > On Sat, May 20, 2023 at 1:23 AM Tobias Klausmann > wrote: > > What I wonder about is the collection stage: the assumption that there > > will be exactly as many results as inputs seems brittle, and the