• 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
doc.go 1.51 KB