[PR #3651] [MERGED] fix version when compiled at a specific commit #6962

Closed
opened 2026-03-07 21:08:42 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3651
Author: @tessus
Created: 7/4/2023
Status: Merged
Merged: 7/5/2023
Merged by: @dani-garcia

Base: mainHead: fix/branch-on-HEAD


📝 Commits (1)

  • 2b32b6f fix version when compiled at a specific commit

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 build.rs (+1 -1)

📄 Description

When a specific commit is checked out from the main branch, the vaultwarden version is reported as vaultwarden x.y.z-githash (HEAD). This is a problem, because the admin interface reports this as a version from a branch called HEAD, while in reality the commit was from the main branch.


🔄 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/dani-garcia/vaultwarden/pull/3651 **Author:** [@tessus](https://github.com/tessus) **Created:** 7/4/2023 **Status:** ✅ Merged **Merged:** 7/5/2023 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix/branch-on-HEAD` --- ### 📝 Commits (1) - [`2b32b6f`](https://github.com/dani-garcia/vaultwarden/commit/2b32b6f78c24c4e0f85b18818013feddd75c5bde) fix version when compiled at a specific commit ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `build.rs` (+1 -1) </details> ### 📄 Description When a specific commit is checked out from the main branch, the vaultwarden version is reported as `vaultwarden x.y.z-githash (HEAD)`. This is a problem, because the admin interface reports this as a version from a branch called HEAD, while in reality the commit was from the main branch. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:08:42 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#6962