ci: sibling 检出 AuthCore 以匹配 Cargo [patch] ../AuthCore
GHA 默认只检出 huike-back,导致 ../AuthCore 不存在。将本仓库检出到 huike-back/、AuthCore 检出到同级目录,并在子目录运行 cargo check;rust-cache 指向 huike-back workspace。 根 Cargo.toml 保留 ../AuthCore patch,避免把 AuthCore 嵌进本 workspace(否则会继承 huike-back 的 workspace.dependencies 而缺依赖)。 Made-with: Cursor
This commit is contained in:
@@ -10,6 +10,8 @@ members = [
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
# Path must stay *outside* this workspace so patched crates keep AuthCore's own [workspace.dependencies].
|
||||
# Clone/symlink: monorepo `AuthCore` as sibling `../AuthCore` (see `.github/workflows/ci.yml`).
|
||||
[patch."https://github.com/alchemy-studio/AuthCore.git"]
|
||||
htycommons = { path = "../AuthCore/htycommons" }
|
||||
htyuc_models = { path = "../AuthCore/htyuc_models" }
|
||||
@@ -19,6 +21,7 @@ htyuc_remote = { path = "../AuthCore/htyuc_remote" }
|
||||
version = "0.1.0"
|
||||
authors = ["阿男 <l.weinan@gmail.com>", "buddy"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
||||
[workspace.dependencies]
|
||||
htycommons = { git = "https://github.com/alchemy-studio/AuthCore.git" }
|
||||
|
||||
Reference in New Issue
Block a user