crush: 0.12.1 -> 0.13.5 (#456990)

This commit is contained in:
Adam C. Stephens
2025-10-31 11:51:39 +00:00
committed by GitHub
+6 -13
View File
@@ -1,32 +1,24 @@
{
lib,
buildGo125Module,
buildGoModule,
fetchFromGitHub,
nix-update-script,
writableTmpDirAsHomeHook,
versionCheckHook,
}:
buildGo125Module (finalAttrs: {
buildGoModule (finalAttrs: {
pname = "crush";
version = "0.12.1";
version = "0.13.5";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "crush";
tag = "v${finalAttrs.version}";
hash = "sha256-uESS76cPJ/sYGbsTpaUKlF8g0y2+LYbF4zd7dAoKWWU=";
hash = "sha256-MKX26HptDwlwWvmP+9FDlFJzly5xKA0mNVsbeHi1zhg=";
};
vendorHash = "sha256-lqoAPp8EW2tW+QjwCuBgxZDbKT3XMvP3qwx/yES1mx4=";
# rename TestMain to prevent it from running, as it panics in the sandbox.
postPatch = ''
substituteInPlace internal/llm/provider/openai_test.go \
--replace-fail \
"func TestMain" \
"func DisabledTestMain"
'';
vendorHash = "sha256-OiNmZKg+NN7Aoeao8L72Dvgz0moeaZGQ7KVJdvuWagY=";
ldflags = [
"-s"
@@ -37,6 +29,7 @@ buildGo125Module (finalAttrs: {
let
# these tests fail in the sandbox
skippedTests = [
"TestCoderAgent"
"TestOpenAIClientStreamChoices"
"TestGrepWithIgnoreFiles"
"TestSearchImplementations"