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: "go test -i" rebuilds unrelated packages #10627

Closed
alexbrainman opened this issue Apr 30, 2015 · 4 comments
Closed

cmd/go: "go test -i" rebuilds unrelated packages #10627

alexbrainman opened this issue Apr 30, 2015 · 4 comments

Comments

@alexbrainman
Copy link
Member

Why changing one file in runtime makes "go test -i" rebuild fmt package (and others). Perhaps I am dreaming, but I don't think "go test -i" used to do that:

# pwd
/root/go/root/src/runtime
# git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean
# go test -i -v
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
bytes
math
syscall
time
os
strconv
reflect
fmt
sort
flag
strings
path/filepath
io/ioutil
math/cmplx
math/rand
os/exec
regexp/syntax
regexp
runtime/debug
bufio
text/tabwriter
runtime/pprof
testing
net/url
text/template/parse
text/template
# go test -i -v
# touch stack1.go
# go test -i -v
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
bytes
math
syscall
time
os
strconv
reflect
fmt
sort
flag
strings
path/filepath
io/ioutil
math/cmplx
math/rand
os/exec
regexp/syntax
regexp
runtime/debug
bufio
text/tabwriter
runtime/pprof
testing
net/url
text/template/parse
text/template
#

Alex

@minux
Copy link
Member

minux commented Apr 30, 2015 via email

@alexbrainman
Copy link
Member Author

Did you mean "these packages are imported by the testing package"? But why changing runtime package make testing package out of date and in need of rebuild?

Alex

@minux
Copy link
Member

minux commented Apr 30, 2015 via email

@alexbrainman
Copy link
Member Author

I have made it up. Probably, because the "go test -i" is much slower now. Sorry.

Alex

@golang golang locked and limited conversation to collaborators Jun 25, 2016
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

3 participants