-
Notifications
You must be signed in to change notification settings - Fork 148
gb rebuilds stdlib every build #570
Comments
This is usually caused by an incorrect go installation, or because gb is Can you please post the output of gb info and also run your build with DEBUG=1 Set and post the complete output, it should be simple to figure it out from On Wed, 24 Feb 2016, 03:38 Daniel Speed notifications@github.com wrote:
|
Note that I've uninstalled Go 1.6, ensured that the directory is clean, rebuilt gb and gb-vendor with build -a. |
The modified timestamp on runtime.a is 17/02/2016 20:36 and sys.a is 20:42 |
Urgh, so the go distribution is wrong. The osx installer also had this On Thu, 25 Feb 2016, 08:59 Daniel Speed notifications@github.com wrote:
|
Perhaps the odd thing here is that having decided to recompile the standard packages once to the local pkg folder, it doesn't pick up those when looking at the timing, and decides to do it again. |
There is a lot of complicated logic that goes on to decide when to rebuild On Thu, Feb 25, 2016 at 9:30 AM, Daniel Speed notifications@github.com
|
I can confirm that when I touched the 'Go\pkg\windows_amd64\runtime\internal\sys.a' file to set it's date to match 'Go\pkg\windows_amd64\runtime.a', gb stopped rebuilding everything and worked as I expected (that is, only compiling things I had changed). |
Having this issue as well. Love the irony of your username in this case @Redundancy lol. |
@ALL, a fix for this issue landed in 673e8a6 and was included in to 0.4.0 release. Can anyone who is having difficulties please confirm for me the revision of gb they are using, and include the output of their invocation with |
@davecheney I removed gb from my bin and src, ran go get github.com/constabulary/gb/... gb build still rebuilding everytime. Output with debug: https://gist.github.com/lancecarlson/b66a93189124478c48ce |
Can you please follow the upgrade instructions on the website; you're On Tue, 8 Mar 2016, 05:09 Lance Carlson, notifications@github.com wrote:
|
I'm seeing the same thing: E:\Dropbox\project\GoFiddle\src\github.com\constabulary\gb>git rev-parse HEAD using: still rebuilding the standard library. |
Please follow the upgrade instructions on the website. It's probably not On Tue, Mar 8, 2016 at 9:29 AM, Daniel Speed notifications@github.com
|
Also, please follow the debugging instructions above and post your results. On Tue, Mar 8, 2016 at 9:33 AM, Dave Cheney dave@cheney.net wrote:
|
Note that if I just do go get -u, I don't tend to get a gb-vendor build. |
The problem you are seeing was fixed before 0.4.0, please follow the
upgrade instructions, https://getgb.io/docs/install/
Then please check that the version of gb.exe that was rebuilt is the one
you expect, I've had multiple reports of people using old versions of gb
that they copied somewhere else in their path taking precedence.
|
At least as far as I can see, the trigger is still: That dependency check takes place and returns before the change on line 119 can be hit. It returns true way before it can work out it shouldn't. |
Thank you. I'll push a fix right now for that. On Tue, Mar 8, 2016 at 10:02 AM, Daniel Speed notifications@github.com
|
I'm having an issue where gb rebuilds the stdlib every time I build my project since I updated to Golang 1.6 on windows by using the windows installer. I've updated gb and rebuilt it manually, but this doesn't seem to matter.
The text was updated successfully, but these errors were encountered: