Repository navigation
refactor!: 跟契约的模型包改名到 Hosihikari.Plugin.Models - #42
Conversation
包与程序集名都变了,引用与硬钉([2.0.1])跟着改。
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e372a1efc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| dotnet pack "$contract/model/Hosihikari.Plugin.Models.csproj" -c Release -o "$work/packages" --nologo | ||
| dotnet pack "$contract/src/Hosihikari.Plugin.Abstractions.csproj" -c Release -o "$work/packages" --nologo |
There was a problem hiding this comment.
Update the smoke plugin's exact contract version
With the corresponding 2.0.1 contract checkout and a fresh NuGet cache, this script packs the new contract packages into its temporary feed, but the generated TestPlugin.csproj still requires Hosihikari.Plugin.Abstractions version [2.0.0] at line 55. Its package-source mapping restricts that package to the temporary local feed, which contains only 2.0.1, so restore fails before the packaging assertions run. This breaks the smoke step in .github/workflows/verify.yml; update the generated project's exact reference to [2.0.1] alongside the package rename.
Useful? React with 👍 / 👎.
上一版改 csproj 时漏了 smoke.sh 里 heredoc 生成的那一份。
它模拟的是插件作者,跨仓依赖写 [2.0.0,3.0.0)。精确钉在本机可以,但会让 文档里推荐的写法与冒烟不一致。
2.0.0 依赖一个不存在的单数包。NuGet 对范围取最低满足版本,下界留在 2.0.0 就会选中坏包——本机实测把 2.0.0 放进本地源,[2.0.0,3.0.0) 解析出的 就是 2.0.0,随即报找不到 Hosihikari.Plugin.Model。跨仓范围与同仓夹具一起 改成 [2.0.1,3.0.0) / [2.0.1]。
配合 #25。包名与程序集名都变成复数,引用与硬钉(
[2.0.1])跟着改;host/Program.cs的注释同步指向新文件名。宿主断言 98/98(A63 的基地清单已显示
Hosihikari.Plugin.Models.dll)。依赖 #25 先合。