• Srdjan Petrovic's avatar
    cmd/go: force-overwrite destination files when installing cgo headers · 85b333db
    Srdjan Petrovic authored
    Fixes #11131
    
    When running 'go install -buildmode=c-shared', under the circumstances
    described in issue #11131, the install command would fail trying to
    install cgo headers if they have already been installed (by a previous
    call to 'go install -buildmode=c-shared').
    
    Since it's safe to overwrite said headers (according to iant@), this CL
    introduces a parameter to builder's 'copy' and 'move' functions that,
    if set to 'true', would force the overwriting of already installed
    files.
    
    This parameter value is set to 'true' only when installing cgo headers,
    for now.
    
    Change-Id: I5bda17ee757066a8e5d2b39f2e8f3a389eb1e4a2
    Reviewed-on: https://go-review.googlesource.com/10870
    Run-TryBot: Srdjan Petrovic <spetrovic@google.com>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    85b333db
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...