winget 升级失败提示 weakly_canonical

Package update operation for Package=goreleaser.goreleaser with Manager=Winget
Installation options: <InstallOptions instance (only non-default values are shown)
	OverridesNextLevelOpts: False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False;Pip_BreakSystemPackages=False>
Version: 2.14.3 -> 2.15.3
开始操作...
Executing process with StartInfo:
 - FileName: "C:\Users\enihsyou\AppData\Local\Microsoft\WindowsApps\winget.exe"
 - Arguments: "update --id "goreleaser.goreleaser" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
Start Time: "2026-04-18 19:47:56"
已找到 goreleaser [goreleaser.goreleaser] 版本 2.15.3
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://github.com/goreleaser/goreleaser/releases/download/v2.15.3/goreleaser_Windows_x86_64.zip
  ██████████████████████████████  25.4 MB / 25.4 MB
已成功验证安装程序哈希
正在提取存档...
已成功提取存档
正在启动程序包卸载...
执行此命令时发生意外错误: 
weakly_canonical: The path cannot be traversed because it contains an untrusted mount point.: "C:\Users\enihsyou\AppData\Local\Microsoft\WinGet\Links\goreleaser.exe"
卸载失败,退出代码为: 0x8a150003 : 执行命令失败
End Time: "2026-04-18 19:48:20"
Process return value: "-1978335145" (0x8A150057)
无法更新 goreleaser

原因怀疑是目录缺少写入权限。

解决方式:以管理员身份重试

Rime 日志中有 Encode failure 警告信息

rime

观察到有 WARNING 日志文件在每次部署之后都有大量的编码错误提示,奇怪的是我并没有添加过相关的词库内容。

W20260419 22:02:05.764142 11928 entry_collector.cc:151] Encode failure: '亞歷山大·杜布切克'.
W20260419 22:02:05.764672 11928 entry_collector.cc:151] Encode failure: '亞當·斯密'.
W20260419 22:02:05.765071 11928 entry_collector.cc:151] Encode failure: '亞西爾·阿拉法特'.
W20260419 22:02:05.789620 11928 entry_collector.cc:151] Encode failure: '伊娃·門德斯'.

排查后定位这些单词来自是 Weasel 自带的词库,位于 C:\Program Files\Rime\weasel-0.17.4\data\essay.txt

原因是我意外地配置引用到 Weasel 自带的配置集合。

patch:
  schema_list:
    - schema: luna_pinyin_simp
    - schema: kokomi_flypy

这个 luna_pinyin_simp 又导入了 luna_pinyin,内部有一段全目录导入给引了进来。

custom_phrase:
  dictionary: ""
  user_dict: custom_phrase
  db_class: stabledb
  enable_completion: false
  enable_sentence: false
  initial_quality: 1

解决方法就是不要在 schema_list 中引用 luna_pinyin_simp。我也不会在多种输入方式中切换,留着没用。

Rime 按键 GG 和 SS 总是会提示 AA 或 AI 作为候选词

rime

观察到 Rime 输入法下,输入 GG 会以 AA 作为唯一候选词,输入 SS 会以 AI 作为唯一候选词。
其他组合暂未观察到类似现象。并且输入框显示为 G' G 明显是分词了,猜测往词库方向筛查。

最终定位到搜狗词库 网络流行新词 中这两条分别负责 SSGG 输入的映射。

敖闰cos	ao run C O S	1
白鲨战胜ag	bai sha zhan sheng A G	1

难道是因为编码的最后一个为大写字母?词库里可有上百处以大写字母结尾的编码。

总之去掉这个词库就好了…反正我也不打算用网络流行词