crush: 0.12.1 -> 0.13.5
https://github.com/charmbracelet/crush/releases/tag/v0.13.0 https://github.com/charmbracelet/crush/releases/tag/v0.13.1 https://github.com/charmbracelet/crush/releases/tag/v0.13.2 https://github.com/charmbracelet/crush/releases/tag/v0.13.3 https://github.com/charmbracelet/crush/releases/tag/v0.13.4 https://github.com/charmbracelet/crush/releases/tag/v0.13.5
This commit is contained in:
@@ -1,32 +1,24 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildGo125Module,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
writableTmpDirAsHomeHook,
|
writableTmpDirAsHomeHook,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGo125Module (finalAttrs: {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "crush";
|
pname = "crush";
|
||||||
version = "0.12.1";
|
version = "0.13.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "charmbracelet";
|
owner = "charmbracelet";
|
||||||
repo = "crush";
|
repo = "crush";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-uESS76cPJ/sYGbsTpaUKlF8g0y2+LYbF4zd7dAoKWWU=";
|
hash = "sha256-MKX26HptDwlwWvmP+9FDlFJzly5xKA0mNVsbeHi1zhg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-lqoAPp8EW2tW+QjwCuBgxZDbKT3XMvP3qwx/yES1mx4=";
|
vendorHash = "sha256-OiNmZKg+NN7Aoeao8L72Dvgz0moeaZGQ7KVJdvuWagY=";
|
||||||
|
|
||||||
# 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"
|
|
||||||
'';
|
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
@@ -37,6 +29,7 @@ buildGo125Module (finalAttrs: {
|
|||||||
let
|
let
|
||||||
# these tests fail in the sandbox
|
# these tests fail in the sandbox
|
||||||
skippedTests = [
|
skippedTests = [
|
||||||
|
"TestCoderAgent"
|
||||||
"TestOpenAIClientStreamChoices"
|
"TestOpenAIClientStreamChoices"
|
||||||
"TestGrepWithIgnoreFiles"
|
"TestGrepWithIgnoreFiles"
|
||||||
"TestSearchImplementations"
|
"TestSearchImplementations"
|
||||||
|
|||||||
Reference in New Issue
Block a user