{"record":{"id":"276df1c0f301bfd4","repo":"kovidgoyal/kitty","slug":"this-is-not-a-standalone-kitten-executable-you-mu","errorCode":null,"errorMessage":"This is not a standalone kitten executable. You must update all of kitty instead.","messagePattern":"This is not a standalone kitten executable\\. You must update all of kitty instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"tools/cmd/update_self/main.go","lineNumber":37,"sourceCode":"\nvar _ = fmt.Print\n\ntype Options struct {\n\tFetchVersion string\n}\n\nfunc update_self(version string) (err error) {\n\texe := \"\"\n\texe, err = os.Executable()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Failed to determine path to kitten: %w\", err)\n\t}\n\texe, err = filepath.EvalSymlinks(exe)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif kitty.IsStandaloneBuild == \"\" {\n\t\treturn fmt.Errorf(\"This is not a standalone kitten executable. You must update all of kitty instead.\")\n\t}\n\trv := \"v\" + version\n\tif version == \"nightly\" {\n\t\trv = version\n\t}\n\turl_base := fmt.Sprintf(\"https://github.com/kovidgoyal/kitty/releases/download/%s\", rv)\n\tif version == \"latest\" {\n\t\turl_base = \"https://github.com/kovidgoyal/kitty/releases/latest/download\"\n\t}\n\turl := fmt.Sprintf(\"%s/kitten-%s-%s\", url_base, runtime.GOOS, runtime.GOARCH)\n\tdest, err := os.CreateTemp(filepath.Dir(exe), \"kitten.\")\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() { os.Remove(dest.Name()) }()\n\n\tif !tty.IsTerminal(os.Stdout.Fd()) {\n\t\tfmt.Println(\"Downloading:\", url)","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/kovidgoyal/kitty/blob/6d5d0c440603ad9bdf6dcd599f73f6dde21acb44/tools/cmd/update_self/main.go#L19-L55","documentation":"Error \"This is not a standalone kitten executable. You must update all of kitty instead.\" thrown in kovidgoyal/kitty.","triggerScenarios":"Thrown at tools/cmd/update_self/main.go:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6d5d0c440603ad9bdf6dcd599f73f6dde21acb44","analyzedAt":"2026-08-27T14:20:20.142Z","schemaVersion":2},"datasetVersion":"2026-08-27T19:17:21.184Z"}