From 3141b43b6501e2b7a639e122da2636f14db6e30a Mon Sep 17 00:00:00 2001 From: mmenanno <1358708+mmenanno@users.noreply.github.com> Date: Fri, 9 Oct 2026 20:40:50 -0400 Subject: [PATCH] gh-stack: 0.1.1 -> 0.2.1 Changelog: https://github.com/github/gh-stack/releases/tag/v0.2.1 Run `git init` in preCheck: the new modifyview insert tests check branch names through git and fail outside a repository. Skip installAgentSkills in the go-modules derivation, which inherits the hook but has no pname. --- pkgs/by-name/gh/gh-stack/package.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/gh/gh-stack/package.nix b/pkgs/by-name/gh/gh-stack/package.nix index c5652e927b7c..f223a4c1bf79 100644 --- a/pkgs/by-name/gh/gh-stack/package.nix +++ b/pkgs/by-name/gh/gh-stack/package.nix @@ -10,7 +10,7 @@ buildGoModule (finalAttrs: { pname = "gh-stack"; - version = "0.1.1"; + version = "0.2.1"; __structuredAttrs = true; @@ -18,10 +18,15 @@ buildGoModule (finalAttrs: { owner = "github"; repo = "gh-stack"; tag = "v${finalAttrs.version}"; - hash = "sha256-jwfqiCnCOOW0AKA52hbgvCCoLzfFX+QfM+vXABkzZgw="; + hash = "sha256-Mq4jAqeSHDuCiDYSa40okrq06UhC3dZGjgCXJKMbgzU="; }; - vendorHash = "sha256-0Xtr/MOpX4u5GnbRdNxKPA0GpSzi8PIbVc9MmP05De4="; + vendorHash = "sha256-TC1mSXYjOQo00fb2yuGdk1rl6z6rp0WT3AmzXomPzis="; + + # the go-modules derivation inherits the installAgentSkills hook but has no pname + overrideModAttrs = _: { + dontInstallAgentSkills = true; + }; ldflags = [ "-s" @@ -34,6 +39,11 @@ buildGoModule (finalAttrs: { nativeCheckInputs = [ gitMinimal ]; + # some tests resolve branches through git and need to run inside a repository + preCheck = '' + git init --quiet + ''; + nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true;