Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: make error more visible #3324

Closed
rsc opened this issue Mar 14, 2012 · 1 comment
Closed

cmd/go: make error more visible #3324

rsc opened this issue Mar 14, 2012 · 1 comment
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Mar 14, 2012

If you change builder.copyFile to do

    _, err = io.Copy(df, sf)
    if strings.Contains(df.Name(), "unicode.a") {
        err = io.ErrShortWrite
    }

and then run all.bash, the error appears mixed with the
other output and is barely noticeable.  And then make.bash
just stops for no apparent reason.



# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
unicode/utf16
sync
crypto/subtle
container/list
io
syscall
hash
crypto
crypto/md5
hash/crc32
crypto/cipher
short write     <<<<<<< BET YOU DIDN'T NOTICE THAT!
crypto/hmac
crypto/sha1
hash/adler32
container/ring
crypto/sha256
crypto/sha512
exp/norm
time
exp/terminal
exp/utf8string
hash/crc64
hash/fnv
image/color
os
sort
math/rand
strconv
math/cmplx
container/heap
os/signal
reflect
encoding/base64
crypto/aes
crypto/rc4
encoding/ascii85
encoding/base32
fmt
encoding/binary
debug/dwarf
crypto/des
flag
go/token
log
debug/pe
database/sql/driver
testing/iotest
database/sql
@rsc
Copy link
Contributor Author

rsc commented Mar 15, 2012

Comment 1:

This issue was closed by revision 7a84fb3.

Status changed to Fixed.

@rsc rsc added fixed labels Mar 15, 2012
@rsc rsc self-assigned this Mar 15, 2012
@rsc rsc added this to the Go1 milestone Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants