mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-25 21:05:47 +03:00
[PR #148] [MERGED] feat: extract commit hash from build info #232
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#232
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/devgianlu/go-librespot/pull/148
Author: @aykevl
Created: 11/21/2024
Status: ✅ Merged
Merged: 3/21/2025
Merged by: @devgianlu
Base:
master← Head:version-git-hash📝 Commits (1)
ede9218feat: extract commit hash from build info📊 Changes
1 file changed (+17 additions, -0 deletions)
View changed files
📝
version.go(+17 -0)📄 Description
The Go toolchain stores the git commit hash in the binary, which can then be extracted using
debug.ReadBuildInfo. The advantage is that the commit hash is present even on development builds (go buildetc), and it simplifies CI slightly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.