Do not rebuild gotip if the HEAD does not change#6
Conversation
On successful build a sentinel zero-byte file is written, similar to .unpacked-success in internal/version. If such file exists on next gotip download, compare HEADs before and after FETCH_HEAD checkout, and trigger the build iff they differ. In that case, sentinel file is removed to make git clean happy and indicate that rebuild is needed.
|
This PR (HEAD: cb27fed) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/dl/+/235117 to see it. Tip: You can toggle comments from me using the |
|
Message from Dmitri Shuralyov: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/235117. |
|
Message from Gobot Gobot: Patch Set 1: TryBots beginning. Status page: https://farmer.golang.org/try?commit=07cdb593 Please don’t reply on this GitHub thread. Visit golang.org/cl/235117. |
|
Message from Gobot Gobot: Patch Set 1: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/235117. |
|
Message from Go Bot: Patch Set 1: TryBots beginning. Status page: https://farmer.golang.org/try?commit=07cdb593 Please don’t reply on this GitHub thread. Visit golang.org/cl/235117. |
|
Message from Go Bot: Patch Set 1: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/235117. |
|
Message from Go Bot: Patch Set 1: TryBots beginning. Status page: https://farmer.golang.org/try?commit=07cdb593 Please don’t reply on this GitHub thread. Visit golang.org/cl/235117. |
|
Message from Go Bot: Patch Set 1: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/235117. |
On successful build a sentinel zero-byte file is written,
similar to .unpacked-success in internal/version. If this
file exists on next gotip download, compare HEADs before
and after FETCH_HEAD checkout, and trigger the build iff
they differ. In that case, sentinel file is removed to
make git clean happy and indicate that rebuild is needed.