]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/clean: fix clean -testcache does not clean test cache
authorBaokun Lee <nototon@gmail.com>
Wed, 16 Jan 2019 10:53:35 +0000 (18:53 +0800)
committerBryan C. Mills <bcmills@google.com>
Wed, 16 Jan 2019 14:03:10 +0000 (14:03 +0000)
commit34817dd365af2be50605b6c204c7412933a52c9b
tree5a3f2ac9b850e98fa2b395ace957f9752c685912
parent5fae09b7386de26db59a1184f62fc7b22ec7667b
cmd/go/internal/clean: fix clean -testcache does not clean test cache

Truncate changes the size of the file. It does not change the I/O offset.

Fixes #29757

Change-Id: I1aa9223a86d6a8ce3c0efc3ac1d7d7647b77f589
Reviewed-on: https://go-review.googlesource.com/c/158117
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/clean/clean.go
src/cmd/go/testdata/script/clean_testcache.txt [new file with mode: 0644]