Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: running of all.bat leaves many files in %TMP% #22650

Closed
alexbrainman opened this issue Nov 9, 2017 · 1 comment
Closed

cmd/go: running of all.bat leaves many files in %TMP% #22650

alexbrainman opened this issue Nov 9, 2017 · 1 comment

Comments

@alexbrainman
Copy link
Member

What version of Go are you using (go version)?

go version devel +d8ee5d11e5 Wed Nov 8 23:18:52 2017 +0000 windows/amd64

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Alex\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=c:\users\alex\dev
set GORACE=
set GOROOT=c:\users\alex\dev\go
set GOTMPDIR=
set GOTOOLDIR=c:\users\alex\dev\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\Alex\AppData\Local\Temp\go-build513354646=/tmp/go-build -gno-record-gcc-switches

What did you do?

I run

dir %TMP% | find /v "" /c

to count lines in my %TMP% directory listing, then I run

all.bat

and then I run

dir %TMP% | find /v "" /c

again.

What did you expect to see?

c:\Users\Alex\dev\go\src>dir %TMP% | find /v "" /c
23

c:\Users\Alex\dev\go\src>all
Building Go cmd/dist using c:\users\alex\dev\go1.4.3
...
Installed commands in c:\Users\Alex\dev\go\bin
*** You need to add c:\Users\Alex\dev\go\bin to your PATH.

c:\Users\Alex\dev\go\src>dir %TMP% | find /v "" /c
23

c:\Users\Alex\dev\go\src>

What did you see instead?

c:\Users\Alex\dev\go\src>dir %TMP% | find /v "" /c
23

c:\Users\Alex\dev\go\src>all
Building Go cmd/dist using c:\users\alex\dev\go1.4.3
...
Installed commands in c:\Users\Alex\dev\go\bin
*** You need to add c:\Users\Alex\dev\go\bin to your PATH.

c:\Users\Alex\dev\go\src>dir %TMP% | find /v "" /c
662

c:\Users\Alex\dev\go\src>

Alex

@gopherbot
Copy link

Change https://golang.org/cl/76810 mentions this issue: cmd/go: close unintentionally left open file

@golang golang locked and limited conversation to collaborators Nov 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants