Skip to content

fix: set GitLastTag to an empty string when git-describe errors - #1355

Merged
sudoforge merged 1 commit into
masterfrom
Ie8e06360d5a4016596b96c6371ce4e32ad6a8afb
Apr 8, 2025
Merged

sudoforge merged 1 commit into
masterfrom
Ie8e06360d5a4016596b96c6371ce4e32ad6a8afb

Conversation

@sudoforge

Copy link
Copy Markdown
Contributor

This change refactors the call to git-describe made in //:Makefile,
such that if the call made to populate the GitLastTag build argument
fails for any reason, the value is an empty string.

This resolves a fairly common situation in CI, and reproducible
elsewhere, if the local repository does not have any tags.

Change-Id: Ie8e06360d5a4016596b96c6371ce4e32ad6a8afb

This change refactors the call to `git-describe` made in `//:Makefile`,
such that if the call made to populate the `GitLastTag` build argument
fails for any reason, the value is an empty string.

This resolves a fairly common situation in CI, and reproducible
elsewhere, if the local repository does not have any tags.

Change-Id: Ie8e06360d5a4016596b96c6371ce4e32ad6a8afb
@sudoforge
sudoforge marked this pull request as ready for review April 8, 2025 10:08
@sudoforge
sudoforge enabled auto-merge April 8, 2025 10:12
@sudoforge
sudoforge disabled auto-merge April 8, 2025 10:12
@sudoforge
sudoforge merged commit 25f755c into master Apr 8, 2025
@sudoforge
sudoforge deleted the Ie8e06360d5a4016596b96c6371ce4e32ad6a8afb branch April 8, 2025 10:13
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.

1 participant