1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:14:39 -07:00
go/cmd
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
..
auth cmd/auth/cookieauth: add a GOAUTH implementation that reads from a cookiefile 2019-04-05 18:06:40 +00:00
benchcmp cmd/benchcmp: add deprecation notice 2020-02-10 18:42:41 +00:00
bundle cmd/bundle: add -tags flag 2019-11-04 19:56:21 +00:00
callgraph all: skip tests if required tools are not found 2019-08-30 15:40:57 +00:00
compilebench cmd/compilebench: report rss measurement 2020-03-18 03:17:18 +00:00
cover all: do not write to testdata directories 2019-08-30 17:05:20 +00:00
digraph all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
eg cmd/eg: Gofmt eg's dry-run output. 2017-07-13 04:09:46 +00:00
fiximports all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
getgo all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
go-contrib-init cmd/go-contrib-init: add unit test for the cmdErr function 2019-11-11 20:03:10 +00:00
godex all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
godoc cmd/godoc: delete unused autocert hooks 2019-11-21 21:43:50 +00:00
goimports cmd/goimports: set correct permissions on Windows 2020-04-23 18:57:08 +00:00
gomvpkg cmd/gomvpkg: add missing closing double-quote to documentation 2018-05-22 18:16:25 +00:00
gorename all: skip tests if required tools are not found 2019-08-30 15:40:57 +00:00
gotype all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
goyacc cmd/goyacc: put //line annotations on the first column. 2018-09-26 03:27:08 +00:00
guru all: do not write to testdata directories 2019-08-30 17:05:20 +00:00
html2article x/tools/cmd/html2article: remove unused functions 2017-03-01 14:53:04 +00:00
present cmd/present: fix origin mismatch for websocket when using HTTPS 2019-10-14 20:52:21 +00:00
present2md present2md: fix depth count for blogs with sections 2020-03-17 20:55:21 +00:00
splitdwarf all: run go generate 2020-03-11 22:20:14 +00:00
ssadump go/ssa/ssautil: add AllPackages method 2018-10-15 18:41:29 +00:00
stress cmd/stress: use an ellipsis when truncating output 2020-01-22 22:00:14 +00:00
stringer cmd/stringer: remove redundant check in generated code 2020-01-14 01:55:19 +00:00
toolstash cmd/toolstash: don't try comparing "asm -V=full" output. 2017-11-02 22:54:56 +00:00