]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/pack: r command create output file if not exist
authorCherry Zhang <cherryyz@google.com>
Tue, 22 Dec 2020 17:40:32 +0000 (12:40 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 22 Dec 2020 18:16:54 +0000 (18:16 +0000)
commit0aa9b4709acd609c1a3e9cb028e7f4c4da3f0357
tree5dfac79b15b58e587979a3fec47c4432eb2b749f
parent4d27c4c223ccb7de3876abbac79b58ad9579be1a
cmd/pack: r command create output file if not exist

Go 1.15 pack's r command creates the output file if it does not
exist. The system "ar" command does this as well. Do the same.

For bazelbuild/rules_go#2762.

Change-Id: Icd88396b5c714b735c859a29ab29851e4301f4d2
Reviewed-on: https://go-review.googlesource.com/c/go/+/279516
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/pack/pack.go
src/cmd/pack/pack_test.go