Skip to content

dsh-tool-gitbash v0.1.2

Choose a tag to compare

@buhuikongpan buhuikongpan released this 21 Aug 03:58
· 10 commits to main since this release

🐛 Bug Fix

  • 修复 dsh web 启动竞态中断 (#3, PR #4):apply() 不再在启动阶段同步读取 ctx.sandbox(该后端由 dsh-sandbox-local 提供、加载 native addon 较慢,与其他插件并行加载时会产生时序竞态,随机报 ctx.sandbox is missing 中断启动)。
    现在 apply() 只用 ctx.sandboxPolicy.defaultMode 判断 confining,把 ctx.get('sandbox') 推迟到 execute()(工具被调用时,所有插件已加载)再延迟读取,与官方 dsh-tool-pwsh 做法对齐。

安装

dsh plugin add dsh-tool-gitbash

(Note:v0.1.1 已用于 PR #2 的发布,本次为含该修复的新版本。)