install: treat xiaohe-agent/packages/mytoolkit as the working tree.

Refuse only GHA _work installs; drop the standalone myBin checkout as the install target.
This commit is contained in:
Zhengshou Lai
2026-08-11 21:18:40 +08:00
parent 089da97633
commit 4b2ed13280
3 changed files with 32 additions and 22 deletions
+7 -6
View File
@@ -146,17 +146,18 @@ mytoolkit init journal springer mydir
### 本机安装(防串源)
真源检出:`~/Documents/myBin/mytoolkit`远程 `apaam/mytoolkit`)。
真源检出:`xiaohe-agent/packages/mytoolkit`submodule → `apaam/mytoolkit`)。
本机旁路克隆(如 `~/Documents/myBin/mytoolkit`)仅作备份,不要用来 `make install`
```bash
cd ~/Documents/myBin/mytoolkit && make install
cd <xiaohe-agent>/packages/mytoolkit && make install
# 或随 monorepocd <xiaohe-agent> && make update / ./setup.sh
python3 -m pip show mytoolkit | grep Editable
# 必须是 .../Documents/myBin/mytoolkit
# 必须是 .../xiaohe-agent/packages/mytoolkit
```
- **禁止**在 `~/.xiaohe/actions-runner/_work/...` 或任意 GHA worktree`pip install -e`
- **禁止**把 `xiaohe-agent/packages/mytoolkit` submodule 当开发树安装(那只是 pin)
- `make install` 会拒绝上述路径,并装进 PATH 上 `mytoolkit` 所用的 Python
- **禁止**在 `~/.xiaohe/actions-runner/_work/...``pip install -e`(会把 CLI 指到 ephemeral 树)
- `make install` 会拒绝上述 runner worktree
### 测试