1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:24:42 -07:00
go/cmd/goimports
Heschi Kreinick 01e6875574 cmd/goimports: set correct permissions on Windows
As of Go 1.14, WriteFile on Windows will set read-only on existing files
if you pass 0 for perms. Pass the pre-existing permissions.

Updates golang/go#38225.

Change-Id: I3174469efd4dc4c7eacc8522386a0712cfa39d11
Reviewed-on: https://go-review.googlesource.com/c/tools/+/229297
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-04-23 18:57:08 +00:00
..
doc.go cmd/goimports: update Emacs install instructions 2018-11-30 05:20:23 +00:00
goimports_gc.go cmd/goimports: work around lack of runtime/trace in gccgo 2016-08-13 05:07:58 +00:00
goimports_not_gc.go cmd/goimports: work around lack of runtime/trace in gccgo 2016-08-13 05:07:58 +00:00
goimports.go cmd/goimports: set correct permissions on Windows 2020-04-23 18:57:08 +00:00