• 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
..
doc.go Loading commit data...
pack.go Loading commit data...
pack_test.go Loading commit data...