-
Notifications
You must be signed in to change notification settings - Fork 20.9k
make clean does not enable rebuild of geth #17078
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
Comments
But why would you want to do a full rebuild? Go uses hashes of the source files to detect whether something changed or not, so doing a full rebuild shouldn't be something too useful. Am I missing something here? |
@karalabe Right in normal cases. |
Cleaning Go's cache will clean out everything, not just go-ethereum related things. As for forcing a rebuild, why is that good? Any change + Go version change will rebuild everything anyway. Feels like a hack to mimic some legacy behavior originating from C++ which was not always able to detect changes properly. |
Right. This is one (critical) downside of using
Agree :) If Frankly speaking, I'm still more get used to legacy behavior of C++ make system, that's one reason I raised this issue. Thanks for sharing your opinion on this cleaning issue :) I will close this issue and related PR soon, if there is no more discussion. |
System information
Geth version: 1.8.12-unstable
Go Version: go1.10.3
OS & Version: OSX
Commit hash : b0cfd9c
Expected behaviour
make geth
should rebuild source code aftermake clean
Actual behaviour
make clean
does not enable full rebuild of go-ethereum as below when using go version 1.10 or later.Steps to reproduce the behaviour
Install go with version 1.10 or higher.
git clone
go-ethereum
make geth
This will trigger the first time full build ofgeth
make clean
make geth
does not rebuildgeth
, just install it as belowBacktrace
go build
make use of cache from 1.10 (see https://golang.org/doc/go1.10#build) and go does not rebuild source code if there is no change.We have to clean go build cache using
go clean -cache
.A PR will be filed to perform
go clean -cache
when we triggermake clean
.The text was updated successfully, but these errors were encountered: