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

internal/build: include git-date on detached head #2127

Merged
merged 1 commit into from
Aug 24, 2024
Merged

internal/build: include git-date on detached head #2127

merged 1 commit into from
Aug 24, 2024

Conversation

ucwong
Copy link
Member

@ucwong ucwong commented Aug 24, 2024

When we are building in detached head, we cannot easily obtain the same information as we can if we're in non-detached head.

However, one thing we can obtain is the git-hash and git-date. Currently, we omit to include the git-date into the build-info, which causes problem for reproducable builds which are on a detached head.

This change fixes it to include the date-info always.

When we are building in detached head, we cannot easily obtain the same information as we can if we're in non-detached head.

However, one thing we _can_ obtain is the git-hash and git-date. Currently, we omit to include the git-date into the build-info, which causes problem for reproducable builds which are on a detached head.

This change fixes it to include the date-info always.
@ucwong ucwong marked this pull request as ready for review August 24, 2024 08:58
@ucwong ucwong merged commit 006b940 into master Aug 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants