Re: [go-nuts] FATAL: ThreadSanitizer: unsupported VMA range FATAL: Found 39 - Supported 48 / go: added github.com/docker/docker v23.0.4+incompatible

2023-04-24 Thread Ian Lance Taylor
On Mon, Apr 24, 2023 at 5:24 PM Mario Marietto wrote: > > root@marietto-nano:/home/marietto/Scaricati/go_git/src# bash make.bash > > WARNING: /home/marietto/go1.10.3/bin/go does not exist, found /usr/bin/go > from env > WARNING: set /usr/lib/go-1.18 as GOROOT_BOOTSTRAP > Building Go cmd/dist usin

Re: [go-nuts] FATAL: ThreadSanitizer: unsupported VMA range FATAL: Found 39 - Supported 48 / go: added github.com/docker/docker v23.0.4+incompatible

2023-04-24 Thread Mario Marietto
root@marietto-nano:/home/marietto/Scaricati/go_git/src# bash make.bash WARNING: /home/marietto/go1.10.3/bin/go does not exist, found /usr/bin/go from env WARNING: set /usr/lib/go-1.18 as GOROOT_BOOTSTRAP Building Go cmd/dist using /usr/lib/go-1.18. (go1.18.1 linux/arm64) Building Go toolchain1 usi

Re: [go-nuts] FATAL: ThreadSanitizer: unsupported VMA range FATAL: Found 39 - Supported 48 / go: added github.com/docker/docker v23.0.4+incompatible

2023-04-24 Thread Ian Lance Taylor
On Mon, Apr 24, 2023 at 4:17 PM Mario Marietto wrote: > root@marietto-nano:/home/marietto/Scaricati/go_git/src# bash all.bash Running all.bash builds the Go toolchain and standard library and runs all the tests. > I think that these errors : > > > FATAL: ThreadSanitizer: unsupported VMA range

[go-nuts] FATAL: ThreadSanitizer: unsupported VMA range FATAL: Found 39 - Supported 48 / go: added github.com/docker/docker v23.0.4+incompatible

2023-04-24 Thread Mario Marietto
Hello. I'm playing with the jetson nano. I've just installed ubuntu 22.04 (for arm64) on top of it. Nvidia says that nothing will work on 22.04 and it is totally unsupported. Well,I'm trying to make it supported :) ; the first problem is related to Docker,because it worked on ubuntu 18.04 an

[go-nuts] Re: Why does os.RemoveAll ignore ErrNotExists?

2023-04-24 Thread Tamás Gulácsi
You want that path to be fully removed. If it does not exist, then it's already done, nothing to do, the desired result has been achieved (already). xiaq a következőt írta (2023. április 24., hétfő, 16:42:22 UTC+2): > Hi, > > The os.RemoveAll function does not

[go-nuts] Why does os.RemoveAll ignore ErrNotExists?

2023-04-24 Thread xiaq
Hi, The os.RemoveAll function does not return an error when the path doesn't exist. Given that this is documented explicitly and implemented using an explicit check

Re: [go-nuts] Re: Short Variable Declarations Are Oversold

2023-04-24 Thread Robert Engels
If you use Go’s “accept interfaces return concrete types” the dev/ide knows to declare the concrete type. Type inference can actually cause more issues during refactorings - not alleviate them. Personally, I find types make the code easier to read. But when I write ago I don’t use them. I fi

[go-nuts] Re: Short Variable Declarations Are Oversold

2023-04-24 Thread a2800276
import “os” func main() { file, _ := os.Open(os.Args[1]) myfunc(file) } func myfunc(file ???) { } What type should I use to declare “file” in the parameter list for myfunc()? This argument doesn't seem logical to me. If I fully declare `file` in this case, I also have to know whi