• Gustavo Niemeyer's avatar
    cmd/dist: prevent race on VERSION creation · c2fe6634
    Gustavo Niemeyer authored
    Commands such as "dist version > VERSION" will cause
    the shell to create an empty VERSION file and set dist's
    stdout to its fd. dist in turn looks at VERSION and uses
    its content if available, which is empty at this point.
    
    Fix that by ignoring VERSION if it's empty.
    
    Also prevent cmdversion from running findgoversion a
    second time. It was already loaded by init.
    
    R=adg, gustavo, rsc
    CC=golang-dev
    https://golang.org/cl/5639044
    c2fe6634
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...