mirror of
https://github.com/jnMetaCode/superpowers-zh.git
synced 2026-09-03 07:23:56 +08:00
fix(test): opencode setup.sh 不再拷不存在的 lib/
tests/opencode/setup.sh 从上游照搬了 `cp -r $REPO_ROOT/lib`,但本 fork 没有 lib/ 目录,导致 test-plugin-loading.sh 在 setup 阶段就 cp 失败、 整个 opencode 测试套件飘红(既有问题,CI 不跑、不拦门)。 本 fork 的 opencode 插件(.opencode/plugins/superpowers.js)自包含、 仅 readFileSync 读取 ../../skills,不依赖 lib,故删除该多余拷贝。 验证:bash tests/opencode/run-tests.sh → STATUS: PASSED(1 passed/0 failed)。
This commit is contained in:
@@ -13,8 +13,9 @@ export XDG_CONFIG_HOME="$TEST_HOME/.config"
|
||||
export OPENCODE_CONFIG_DIR="$TEST_HOME/.config/opencode"
|
||||
|
||||
# Install plugin to test location
|
||||
# 注:本 fork 的 opencode 插件(superpowers.js)自包含、仅读取 ../../skills,
|
||||
# 不依赖上游的 lib/(fork 无此目录),故不拷 lib。
|
||||
mkdir -p "$HOME/.config/opencode/superpowers"
|
||||
cp -r "$REPO_ROOT/lib" "$HOME/.config/opencode/superpowers/"
|
||||
cp -r "$REPO_ROOT/skills" "$HOME/.config/opencode/superpowers/"
|
||||
|
||||
# Copy plugin directory
|
||||
|
||||
Reference in New Issue
Block a user