Hi,I've tried to find this in the docs but have not come up with anything so here goes...My antivirus [f-secure] blocks any attempts to use the convention "go run foobar.go" in development. It does this by denying access to the a.out.exe that gets produced behind the scenes in the WORK directory.
So to get around this annoyance I'd like to point this WORK directory to a different TEMP location that I can then safely exclude in the antivirus settings.Anyone got any ideas?Thanks in advance,Tallal--
Thanks for the suggestion .. I should have mentioned that I'm on windows.Setting TMPDIR as an env var in windows has no effect. It's still picking up the system TMP which is what I'm trying to override.
On Tuesday, 18 September 2012 21:23:10 UTC+1, Kyle Lemons wrote:Go build uses ioutil.TempDir (http://golang.org/src/cmd/go/build.go#L330) which uses os.TempDir which, on linux, refers to the environment variable TMPDIR. So, set that and you're golden :).
On Tue, Sep 18, 2012 at 6:55 AM, Tallal Garghouti <tal...@gmail.com> wrote:Hi,I've tried to find this in the docs but have not come up with anything so here goes...My antivirus [f-secure] blocks any attempts to use the convention "go run foobar.go" in development. It does this by denying access to the a.out.exe that gets produced behind the scenes in the WORK directory.
So to get around this annoyance I'd like to point this WORK directory to a different TEMP location that I can then safely exclude in the antivirus settings.Anyone got any ideas?Thanks in advance,Tallal--
--