[PR #148] [MERGED] feat: extract commit hash from build info #232

Closed
opened 2026-02-28 14:26:20 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: version-git-hash


📝 Commits (1)

  • ede9218 feat: 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 build etc), and it simplifies CI slightly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/devgianlu/go-librespot/pull/148 **Author:** [@aykevl](https://github.com/aykevl) **Created:** 11/21/2024 **Status:** ✅ Merged **Merged:** 3/21/2025 **Merged by:** [@devgianlu](https://github.com/devgianlu) **Base:** `master` ← **Head:** `version-git-hash` --- ### 📝 Commits (1) - [`ede9218`](https://github.com/devgianlu/go-librespot/commit/ede921835862779d6d3396468266809aefd1cd53) feat: extract commit hash from build info ### 📊 Changes **1 file changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `version.go` (+17 -0) </details> ### 📄 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 build` etc), and it simplifies CI _slightly_. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:26:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#232
No description provided.