1
0
mirror of https://github.com/golang/go synced 2024-10-02 08:18:32 -06:00
go/src
Alex Brainman 821e3f7d85 cmd/go: close unintentionally left open file
cmd/go/internal/work.Builder.updateBuildID left a file opened.
But opened files cannot be deleted on Windows, so cmd/go just
leaves these files in %TMP% directory.

Close the file so deletion can succeed.

Fixes #22650

Change-Id: Ia3ea62f6ec7208d73972eae2e17fb4a766407914
Reviewed-on: https://go-review.googlesource.com/76810
Reviewed-by: Dave Cheney <dave@cheney.net>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-11-10 01:31:02 +00:00
..
archive archive/zip: use Time.UTC instead of Time.In(time.UTC) 2017-11-10 00:27:33 +00:00
bufio bufio: add Reader.Size and Writer.Size accessors 2017-11-02 17:17:44 +00:00
builtin
bytes bytes: reduce work in IndexNearPageBoundary test 2017-11-04 11:09:49 +00:00
cmd cmd/go: close unintentionally left open file 2017-11-10 01:31:02 +00:00
compress compress/bzip2: fix checksum mismatch on empty reads 2017-09-25 23:05:58 +00:00
container container/ring: fix example_test.go 2017-10-31 03:52:55 +00:00
context context: fix references to "d" in WithDeadline docs 2017-09-21 03:00:51 +00:00
crypto crypto/tls: limit number of consecutive warning alerts 2017-11-08 23:18:52 +00:00
database/sql all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
debug debug/dwarf: clarify StructField.ByteSize doc 2017-10-18 21:45:30 +00:00
encoding encoding/json: permit encoding uintptr as a string 2017-11-08 20:34:55 +00:00
errors
expvar
flag flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).Output 2017-10-31 03:54:16 +00:00
fmt fmt: hide bad format in test from vet 2017-10-31 13:49:53 +00:00
go net: use WSASocket instead of socket call 2017-11-07 22:04:15 +00:00
hash hash: add marshaling, unmarshaling example 2017-11-04 03:47:34 +00:00
html all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
image all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
index/suffixarray
internal syscall: change SysProcAttr.Token type to Token 2017-11-07 22:06:35 +00:00
io io: fix Pipe regression with differing error types 2017-11-02 23:05:53 +00:00
log log: Remove unnecessary else 2017-10-25 05:02:37 +00:00
math math/big: add security warning to (*Int).Rand 2017-11-06 15:55:31 +00:00
mime all: unindent some if bodies by exiting early 2017-10-31 20:07:46 +00:00
net net: use WSASocket instead of socket call 2017-11-07 22:04:15 +00:00
os syscall: fix NaCl Link syscall error handling 2017-11-06 16:36:34 +00:00
path all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
plugin cmd/link, plugin: always encode path 2017-10-26 15:08:37 +00:00
reflect all: unindent some if bodies by exiting early 2017-10-31 20:07:46 +00:00
regexp go/printer: forbid empty line before first comment in block 2017-11-02 18:17:22 +00:00
runtime cmd/go: implement per-package asmflags, gcflags, ldflags, gccgoflags 2017-11-09 15:04:04 +00:00
sort sort: split post-Go1.4 code into its own file 2017-10-27 16:01:43 +00:00
strconv unicode: update to Unicode 10.0.0 2017-10-24 12:42:35 +00:00
strings strings: optimize ToLower 2017-11-08 21:47:19 +00:00
sync all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
syscall syscall: change SysProcAttr.Token type to Token 2017-11-07 22:06:35 +00:00
testing testing/iotest: fix NewReadLogger documentation typo 2017-10-19 15:59:21 +00:00
text text/template: remove unused lexer field 2017-11-09 21:24:21 +00:00
time time: example in doc for time.AppendFormat func 2017-11-06 17:57:52 +00:00
unicode go/printer: forbid empty line before first comment in block 2017-11-02 18:17:22 +00:00
unsafe
vendor/golang_org/x vendor: add golang.org/x/crypto/cryptobyte 2017-11-08 00:18:05 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash cmd/dist: fix bad LC_TIME assumption in 'date' invocation 2017-11-03 13:42:33 +00:00
make.bat build: quiet make.bash, make.bat, make.rc 2017-10-31 13:48:53 +00:00
Make.dist
make.rc build: quiet make.bash, make.bat, make.rc 2017-10-31 13:48:53 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc