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

add commit-sha to cli #2411

Merged
merged 3 commits into from
Jan 11, 2024
Merged

add commit-sha to cli #2411

merged 3 commits into from
Jan 11, 2024

Conversation

universalmind303
Copy link
Contributor

closes #2280

now it'll show a nice git version instead of just the pkg version.

> ./glaredb
GlareDB (v0.8.0-11-g167702f)

you can read more about how the {git_version} is generated here.

TLDR; it uses the head (if its a tag, it uses just that, otherwise it uses a concatonation of the last tag + the commit)

note for development purposes.

It does cache this in your target dir, so if it's not showing the current commit, it's likely that this generated file is cached.

@universalmind303 universalmind303 enabled auto-merge (squash) January 11, 2024 20:43
@universalmind303 universalmind303 merged commit 4e59620 into main Jan 11, 2024
19 checks passed
@universalmind303 universalmind303 deleted the universalmind303/commit-sha branch January 11, 2024 20:51
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.

Show the commit sha for version when compiled from source
2 participants