[{"data":1,"prerenderedAt":218},["ShallowReactive",2],{"navigation_docs_zh_CN":3,"\u002Fzh-CN\u002Fguides\u002Fupdating":85,"\u002Fzh-CN\u002Fguides\u002Fupdating-surround":213},[4,19,41,75],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":18},"快速开始","i-lucide-book-open","\u002Fzh-CN\u002Fgetting-started","zh-CN\u002F1.getting-started",[10,14],{"title":11,"path":12,"stem":13},"安装","\u002Fzh-CN\u002Fgetting-started\u002Finstallation","zh-CN\u002F1.getting-started\u002F1.installation",{"title":15,"path":16,"stem":17},"第一个 Pin","\u002Fzh-CN\u002Fgetting-started\u002Ffirst-pin","zh-CN\u002F1.getting-started\u002F2.first-pin",false,{"title":20,"icon":21,"path":22,"stem":23,"children":24,"page":18},"使用指南","i-lucide-route","\u002Fzh-CN\u002Fguides","zh-CN\u002F2.guides",[25,29,33,37],{"title":26,"path":27,"stem":28},"更新与选择","\u002Fzh-CN\u002Fguides\u002Fupdating","zh-CN\u002F2.guides\u002F1.updating",{"title":30,"path":31,"stem":32},"组合 Checker 与 Fetcher","\u002Fzh-CN\u002Fguides\u002Fcombinations","zh-CN\u002F2.guides\u002F2.combinations",{"title":34,"path":35,"stem":36},"多 Source 与补丁","\u002Fzh-CN\u002Fguides\u002Fmulti-source","zh-CN\u002F2.guides\u002F3.multi-source",{"title":38,"path":39,"stem":40},"Package 与依赖哈希","\u002Fzh-CN\u002Fguides\u002Fdependencies","zh-CN\u002F2.guides\u002F4.dependencies",{"title":42,"icon":43,"path":44,"stem":45,"children":46,"page":18},"参考文档","i-lucide-code","\u002Fzh-CN\u002Freference","zh-CN\u002F3.reference",[47,51,55,59,63,67,71],{"title":48,"path":49,"stem":50},"CLI","\u002Fzh-CN\u002Freference\u002Fcli","zh-CN\u002F3.reference\u002F1.cli",{"title":52,"path":53,"stem":54},"运行配置","\u002Fzh-CN\u002Freference\u002Fconfiguration","zh-CN\u002F3.reference\u002F2.configuration",{"title":56,"path":57,"stem":58},"Pin 声明","\u002Fzh-CN\u002Freference\u002Fpins","zh-CN\u002F3.reference\u002F3.pins",{"title":60,"path":61,"stem":62},"Checker","\u002Fzh-CN\u002Freference\u002Fcheckers","zh-CN\u002F3.reference\u002F4.checkers",{"title":64,"path":65,"stem":66},"Fetcher","\u002Fzh-CN\u002Freference\u002Ffetchers","zh-CN\u002F3.reference\u002F5.fetchers",{"title":68,"path":69,"stem":70},"Package Builder","\u002Fzh-CN\u002Freference\u002Fbuilders","zh-CN\u002F3.reference\u002F6.builders",{"title":72,"path":73,"stem":74},"Reader 与 Pins File","\u002Fzh-CN\u002Freference\u002Freader","zh-CN\u002F3.reference\u002F7.reader",{"title":76,"icon":77,"path":78,"stem":79,"children":80,"page":18},"排错指南","i-lucide-wrench","\u002Fzh-CN\u002Ftroubleshooting","zh-CN\u002F4.troubleshooting",[81],{"title":82,"path":83,"stem":84},"常见错误","\u002Fzh-CN\u002Ftroubleshooting\u002Fcommon-errors","zh-CN\u002F4.troubleshooting\u002F1.common-errors",{"id":86,"title":26,"body":87,"description":206,"extension":207,"links":208,"meta":209,"navigation":210,"path":27,"seo":211,"stem":28,"__hash__":212},"docs_zh_CN\u002Fzh-CN\u002F2.guides\u002F1.updating.md",{"type":88,"value":89,"toc":200},"minimark",[90,94,111,119,122,144,147,150,153,173,184,187,190,193,196],[91,92,93],"h2",{"id":93},"全部更新",[95,96,101],"pre",{"className":97,"code":98,"language":99,"meta":100,"style":100},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","nix-pins update\n","sh","",[102,103,104],"code",{"__ignoreMap":100},[105,106,109],"span",{"class":107,"line":108},"line",1,[105,110,98],{},[112,113,114,115,118],"p",{},"没有名称或 ",[102,116,117],{},"--filter"," 时，处理全部配置中的 Pin。全部更新还会移除 Pins File 中已经不在配置里的 Pin 和 failure。",[91,120,121],{"id":121},"选择性更新",[95,123,125],{"className":97,"code":124,"language":99,"meta":100,"style":100},"nix-pins update patchelf ripgrep\nnix-pins update --filter '^python-'\nnix-pins update patchelf --filter '^python-'\n",[102,126,127,132,138],{"__ignoreMap":100},[105,128,129],{"class":107,"line":108},[105,130,131],{},"nix-pins update patchelf ripgrep\n",[105,133,135],{"class":107,"line":134},2,[105,136,137],{},"nix-pins update --filter '^python-'\n",[105,139,141],{"class":107,"line":140},3,[105,142,143],{},"nix-pins update patchelf --filter '^python-'\n",[112,145,146],{},"名称与正则匹配结果取并集。显式名称必须全部存在；仅提供正则却没有匹配项时会报错。选择性更新不修改范围之外的锁定条目，也不清理范围之外已经从配置删除的条目。",[112,148,149],{},"Source 与 Package 都不能单独作为选择对象。一个 Pin 的所有 Source 共同成功后，才会更新这个 Pin。",[91,151,152],{"id":152},"只读查看",[95,154,156],{"className":97,"code":155,"language":99,"meta":100,"style":100},"nix-pins\nnix-pins status\nnix-pins status patchelf\n",[102,157,158,163,168],{"__ignoreMap":100},[105,159,160],{"class":107,"line":108},[105,161,162],{},"nix-pins\n",[105,164,165],{"class":107,"line":134},[105,166,167],{},"nix-pins status\n",[105,169,170],{"class":107,"line":140},[105,171,172],{},"nix-pins status patchelf\n",[112,174,175,176,179,180,183],{},"未指定子命令时执行 ",[102,177,178],{},"status","。它读取已有锁定结果和上次失败信息；当前 CLI 没有 ",[102,181,182],{},"status --refresh","。",[91,185,186],{"id":186},"失败与取消",[112,188,189],{},"配置错误在执行 Checker 前使整次操作失败。单个 Pin 的运行失败不会阻止其他 Pin 更新：失败 Pin 保留原来的可用内容；首次锁定失败时只记录 failure，不创建带假哈希的 Pin 条目。",[112,191,192],{},"成功结果最终统一原子写入 Pins File。取消时不写入。不同进程不能同时写同一 Pins File；工具通过写锁拒绝并发写者。",[112,194,195],{},"交互式终端显示 Pin／Source／Package 进度，重定向和 CI 使用文本输出。显示完成表示计算成功，持久化发生在最终写入阶段。",[197,198,199],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":100,"searchDepth":134,"depth":134,"links":201},[202,203,204,205],{"id":93,"depth":134,"text":93},{"id":121,"depth":134,"text":121},{"id":152,"depth":134,"text":152},{"id":186,"depth":134,"text":186},"理解全部更新、选择性更新、失败保留和取消行为。","md",null,{},true,{"title":26,"description":206},"SP2CsDZ97z5LSZqg7W_yh7Xn4M7ohX1O8VRTVKiaGUc",[214,216],{"title":15,"path":16,"stem":17,"description":215,"children":-1},"从一个 GitHub 示例开始，完成版本检查、源码锁定与 Nix 消费。",{"title":30,"path":31,"stem":32,"description":217,"children":-1},"从包注册表、Git 或自定义命令选择版本，再独立选择下载方式。",1790868073520]