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:
@@ -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
|
||||
# 或随 monorepo:cd <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
|
||||
|
||||
### 测试
|
||||
|
||||
|
||||
Reference in New Issue
Block a user