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

[Backport release-1.29] Remove binary before building it #4309

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

k0s-bot
Copy link

@k0s-bot k0s-bot commented Apr 17, 2024

Automated backport to release-1.29, triggered by a label in #4294.
See #3905.

The Go compiler doesn't touch the binary if it doesn't detect any code
changes. (Presumably by checking the BuildID of the old and the new
binary?) However, the Makefile relied on a regeneration of the binary
in any case, so that it can reappend the bindata file agan. Mitigate
this by deleting the binary before the build. That way, the Go compiler
doesn't have a choice.

Fixes: 08df7f5 ("Provide empty asset offsets without codegen")
Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit ad98aac)
@k0s-bot k0s-bot requested a review from a team as a code owner April 17, 2024 11:50
@k0s-bot k0s-bot requested review from makhov and twz123 April 17, 2024 11:50
@k0s-bot k0s-bot mentioned this pull request Apr 17, 2024
16 tasks
@twz123 twz123 added the bug Something isn't working label Apr 17, 2024
@twz123 twz123 enabled auto-merge April 17, 2024 14:32
@twz123 twz123 merged commit 5421d2d into release-1.29 Apr 18, 2024
75 checks passed
@twz123 twz123 deleted the backport-4294-to-release-1.29 branch April 18, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants