I get a bloated /tmp-dir (in just a few days I get tens of thousands of 
folders named /tmp/go-build828718408 etc.) so I tried to set $GOTMPDIR, but 
nothing ends up there. (From what I understand of the documentation the 
purpose of GOTMPDIR is to move tmp stuff, see e.g. line 1471 of 
https://golang.org/src/cmd/go/alldocs.go?h=GOTMPDIR, or release notes of 
1.10 https://golang.org/doc/go1.10). 

Am I using things wrong?

$ go version
go version go1.12.6 linux/amd64

$ echo $GOTMPDIR
/tmp/go-builds

$ ls $GOTMPDIR
please-end-up-here.txt

$ go build/test/this/that/etc
[...]

$ ls $GOTMPDIR
please-end-up-here.txt


Kind regards,
Per the go-noob.

-- 
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/d8df0b4a-9bd6-4682-87fd-7fea6e9a81a1%40googlegroups.com.

Reply via email to