Repository navigation
feat(desktop): Core 固定到 6477e9a,工具定义的版本探针可以用子命令开头 - #1964
Merged
Merged
Conversation
xiaoyumuxi
added a commit
to Lithe-IDEA/lithe-plugin-go
that referenced
this pull request
Nov 15, 2026
#1960 合入时没有带上 Core 6477e9a 的固定提交,改由 #1964 单独提交。 宿主固定到 b03dbf0c0(preview 1fc1e8b05 加上 Core 6477e9a),说明里的 宿主 PR 随之改为 #1964。
xiaoyumuxi
added a commit
to Lithe-IDEA/lithe-plugin-go
that referenced
this pull request
Nov 15, 2026
* feat: 新建 Go 项目可以选 GOROOT,Go 版本默认取所选 Go 的版本 插件声明 go 工具定义:在 Homebrew、/usr/local/go、~/sdk/go* 等位置找 Go, 用 go version 读版本(需要 Core 6477e9a,宿主 1lck/Lithe-IDEA#1960)。 - 新建项目加入 GOROOT 字段(tool 类型,默认最新的 Go,创建后记为项目固定); Go 版本默认 ${field.goroot.version},没有找到 Go 时需要手动填写。 - 构建系统的 go 在 Go executable 设置之后交给工具定义解析,最后才用 PATH。 - 集成测试改为用插件的工具定义在本机找 Go,覆盖版本跟随、项目固定和用固定的 Go 构建;宿主固定到 fce5d46d3。 * chore: 宿主固定到 1lck/Lithe-IDEA#1964 的分支提交 #1960 合入时没有带上 Core 6477e9a 的固定提交,改由 #1964 单独提交。 宿主固定到 b03dbf0c0(preview 1fc1e8b05 加上 Core 6477e9a),说明里的 宿主 PR 随之改为 #1964。
xiaoyumuxi
marked this pull request as ready for review
November 15, 2026 07:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
go工具定义用go version读版本)PR 类型 / Type
改动说明 / What changes
背景 / Why
插件用
toolDefinitions声明工具后,宿主运行工具的版本探针读出版本,用于工具链设置、新建项目的tool字段和构建解析。旧版 Core 要求探针参数全部是-开头的选项,所以java -version能用,go version被拒绝:声明了go工具定义的插件在安装时无法通过清单校验。Lithe-IDEA/Lithe-core-rust#52 放宽了这条规则:探针可以用一个子命令开头,后面只能跟选项。preview 现在固定的是 Core 52c54e0(#49),不含 #52。
改动 / Changes
scripts/desktop/build-desktop-core.shPINNED_CORE_REVISION从52c54e0(Core w3多终端 #49)升到6477e9a(Core docs: add shared AI development skill #52)。不在本 PR 范围内 / Out of scope
e2e/host/lithe-host.json改到本 PR 的合入提交,再跑完整端到端测试。commandInstallers):Core 部分在 Draft feat(plugins): commandInstallers 让宿主安装 systemCommand 启动缺的命令 Lithe-IDEA/Lithe-core-rust#53,桌面端另开 PR。类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:宿主代码没有改动;
plugin-injected-toolchains描述的能力、证据和验证状态都不变。放宽的探针规则在 Core,由 Core #52 的测试覆盖。插件归属 / Plugin ownership
develop-lithe第三节的自查命令,结果为空(本 PR 只改固定版本和它的说明)internal/projectgen测试在本分支上通过,见“验证”UI 验证 / UI evidence
N/A:没有界面变化。
统一日志系统 / Structured logging
N/A:没有新的里程碑、终态或失败路径。
界面文案 / i18n
N/A:没有新增或修改文案。
逻辑归属 / Logic placement
go性能与内存 / Performance and memory
N/A:没有新的后台功能、子进程或缓存;探针仍是原来有上限的那一次版本探测。
设置 / Settings
N/A:没有改设置项。
插件契约 / Plugin contract
PINNED_CORE_REVISION已升到 6477e9a;构建戳.artifacts/desktop/lithe-core/aarch64-apple-darwin/debug/identity.txt显示core-revision=6477e9a…、core-source=pinned发行包与资源 / Bundle and resources
N/A:没有新增运行时资源、下载物或缓存。
无用代码与重构 / Dead code and refactoring
验证 / Verification
scripts/desktop/desktop-go.sh test ./internal/toolchain/ ./internal/projectgen/ ./internal/pluginhost/ -count=1go_integration_test.go到internal/projectgen/,运行LITHE_PLUGIN_GO_DIR=<插件目录> scripts/desktop/desktop-go.sh test ./internal/projectgen/ -run '^TestGoPlugin' -count=1 -v(运行后已删除)go工具定义通过校验,找到本机 GOROOT,生成的go.mod是go 1.27.4未能执行的检查和原因:
提交前确认 / Final checks
preview(1fc1e8b05)创建,目标preview