[PR #81] [MERGED] fix: resolve nix hash mismatch and add auto-update automation #81

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

📋 Pull Request Information

Original PR: https://github.com/devnullvoid/pvetui/pull/81
Author: @devnullvoid
Created: 1/29/2026
Status: Merged
Merged: 1/29/2026
Merged by: @devnullvoid

Base: masterHead: fix-nix-flake-hash-85861511328180911


📝 Commits (2)

  • c9d6c7d fix(nix): update vendorHash and add auto-update workflow
  • 2b786b2 fix: update vendorHash and improve workflow robustness

📊 Changes

2 files changed (+92 additions, -1 deletions)

View changed files

.github/workflows/update-nix-hash.yml (+91 -0)
📝 flake.nix (+1 -1)

📄 Description

This PR addresses the "Nix Flake Hash Mismatch" issue (#80) and introduces automation to prevent it from recurring.

Changes

  1. Fix: Updated flake.nix with the correct vendorHash (sha256-ifqCjFcfUWIgLiJfXbOT/ldHA9NqUIBEi/k70C5dsf0=), restoring the ability to run/build via Nix.
  2. Automation: Added a new GitHub Action workflow (.github/workflows/update-nix-hash.yml).
    • Trigger: Runs on Pull Requests that modify go.mod or go.sum.
    • Action: Attempts a Nix build. If it fails due to a hash mismatch, it extracts the new hash from the error message, updates flake.nix, and pushes the change back to the PR.
    • Benefit: This allows Dependabot PRs (and manual dependency updates) to "self-heal" their Nix configuration without manual intervention.

Verification

  • Manual build verification would confirm the new hash fixes the immediate issue.
  • The workflow logic has been implemented to handle standard nix build mismatch error formats.

PR created automatically by Jules for task 85861511328180911 started by @devnullvoid


🔄 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/devnullvoid/pvetui/pull/81 **Author:** [@devnullvoid](https://github.com/devnullvoid) **Created:** 1/29/2026 **Status:** ✅ Merged **Merged:** 1/29/2026 **Merged by:** [@devnullvoid](https://github.com/devnullvoid) **Base:** `master` ← **Head:** `fix-nix-flake-hash-85861511328180911` --- ### 📝 Commits (2) - [`c9d6c7d`](https://github.com/devnullvoid/pvetui/commit/c9d6c7dd70caf58f1b607256a50e6ceaa554c1bb) fix(nix): update vendorHash and add auto-update workflow - [`2b786b2`](https://github.com/devnullvoid/pvetui/commit/2b786b26247753d19c42b35ffdb64538b9ba05ba) fix: update vendorHash and improve workflow robustness ### 📊 Changes **2 files changed** (+92 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/update-nix-hash.yml` (+91 -0) 📝 `flake.nix` (+1 -1) </details> ### 📄 Description This PR addresses the "Nix Flake Hash Mismatch" issue (#80) and introduces automation to prevent it from recurring. ### Changes 1. **Fix:** Updated `flake.nix` with the correct `vendorHash` (`sha256-ifqCjFcfUWIgLiJfXbOT/ldHA9NqUIBEi/k70C5dsf0=`), restoring the ability to run/build via Nix. 2. **Automation:** Added a new GitHub Action workflow (`.github/workflows/update-nix-hash.yml`). * **Trigger:** Runs on Pull Requests that modify `go.mod` or `go.sum`. * **Action:** Attempts a Nix build. If it fails due to a hash mismatch, it extracts the new hash from the error message, updates `flake.nix`, and pushes the change back to the PR. * **Benefit:** This allows Dependabot PRs (and manual dependency updates) to "self-heal" their Nix configuration without manual intervention. ### Verification - Manual build verification would confirm the new hash fixes the immediate issue. - The workflow logic has been implemented to handle standard `nix build` mismatch error formats. --- *PR created automatically by Jules for task [85861511328180911](https://jules.google.com/task/85861511328180911) started by @devnullvoid* --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:43:28 +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/pvetui#81
No description provided.