(master)mwhudson@aeglos:/opt/opensource/gopath/src/github.com/snapcore/snapd$ cat /opt/opensource/go-test-cases/tmpdir.go
package main
import (
"fmt"
"os"
)
func main() {
fmt.Printf("%q\n", os.Getenv("TMPDIR"))
}
(master)mwhudson@aeglos:/opt/opensource/gopath/src/github.com/snapcore/snapd$ TMPDIR=/tmp go run /opt/opensource/go-test-cases/tmpdir.go"/tmp"
(master)mwhudson@aeglos:/opt/opensource/gopath/src/github.com/snapcore/snapd$ TMPDIR=/tmp /snap/bin/go run /opt/opensource/go-test-cases/tmpdir.go
""