| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
epkg.ps1: fix PowerShell parameter ambiguity for short options Root Cause Analysis: - PowerShell's [CmdletBinding()] enables common parameters like -ErrorAction and -ErrorVariable - When user runs 'epkg -e alpine', PowerShell interprets '-e' as an ambiguous prefix matching multiple common parameters - This causes the error: "参数名称'e'具有二义性" Solution: Remove [CmdletBinding()] and param() block, use $args automatic variable instead. This prevents PowerShell from parsing arguments as common parameter abbreviations, allowing epkg options like -e, -r, -q, -v to pass through correctly to the Rust binary. Fixes: epkg -e alpine info jq ParameterBindingException: 参数名称"e"具有二义性 可能的匹配项包括: -ErrorAction -ErrorVariable Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
assets: gather sources/ and lib/epkg-rc.sh for end user deployment 迁移清单 ┌─────────────────────────────┬────────────────────────────────────┐ │ 原路径 │ 新路径 │ ├─────────────────────────────┼────────────────────────────────────┤ │ lib/epkg-rc.sh │ assets/shell/epkg.sh │ ├─────────────────────────────┼────────────────────────────────────┤ │ sources/*.yaml │ assets/repos/*.yaml │ ├─────────────────────────────┼────────────────────────────────────┤ │ sources/mirrors.json │ assets/mirrors/mirrors.json │ │ sources/manual-mirrors.json │ assets/mirrors/manual-mirrors.json │ │ sources/cc-timezone.txt │ assets/mirrors/cc-timezone.txt │ └─────────────────────────────┴────────────────────────────────────┘ Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 4 个月前 |