• Rob Pike's avatar
    cmd/pack: fix c command for existing file · 1193993c
    Rob Pike authored
    There were at least two bugs:
    1) It would overwrite a non-archive.
    2) It would truncate a non-archive and then fail.
    In general the file handling was too clever to be correct.
    Make it more straightforward, doing the creation
    separately from archive management.
    
    Fixes #8369.
    
    LGTM=adg, iant
    R=golang-codereviews, adg, iant
    CC=golang-codereviews
    https://golang.org/cl/147010046
    1193993c
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal/objfile Loading commit data...
ld Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
yacc Loading commit data...