Repository navigation
fix(index): Go Support 1.0.0 重发后更新包的 SHA-256 - #70
Merged
Merged
Conversation
v1.0.0 的 Release 和 tag 已删除并在 lithe-plugin-go main 8595a25 上重发, 新包的 SHA-256 是 69462f3a…967b22,原条目的 e7089f29…cadbe9f 已经对不上。
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.
改动类型
插件
io.github.lithe-idea.go-support#68 收录的 1.0.0 发布后几分钟,发现 Delve 调试在多模块工作区(根目录没有
go.mod)里报Build error,所以删除了那次的 Release 和 tag,修复后以同一版本号重发:targetBindings.adapterArguments)和 chore(index): 收录 Cargo 0.1.3、Maven 0.1.3、Gradle 0.1.2 #56(cwd←target.directory);v1.0.0指向 lithe-plugin-go main8595a25。原条目的下载地址在删除期间是 404,现在重新可用,但包变了,原来的
sha256对不上,安装会在哈希校验时失败。条目内容
sha256:e7089f29…cadbe9f→69462f3a4207f0a62477abb469ea849abe4d13c177f125da0dc365b8dd967b22。这个值来自 Release 资产,GitHub 资产 digest 和下载后用shasum -a 256算出的一致。downloadURL、requires、releaseDate、名称、描述、图标都不变。requires已逐项对过新包里的plugin.json(buildSystems、commandInstallers、debugAdapters、languageServers、languages、projectGenerators、settings、toolDefinitions,都是 0)。宿主兼容:新包用了 Core #55 的
targetBindings.adapterArguments。没有这个字段的宿主会以plugin.manifest.invalid拒绝安装 1.0.0,因为调试适配器的清单是deny_unknown_fields,能力版本仍是debugAdapters0,索引里没法区分。需要桌面端包含 1lck/Lithe-IDEA#1975(Core #55、#56)。当前的desktop-AutoBuild基于 1lck/Lithe-IDEA main9b36ed77b,在 #1975 之前,所以要等下一次 AutoBuild 才能装上 1.0.0。自检
plugin.json的vendor.signatureRequirement为"none",ID 不在dev.lithe.*node scripts/validate-index.mjs lithe-plugin-index.json --verify-archives --base <main 的索引>:和 CI 一样只下载了哈希变化的 go-support 1.0.0,结果 verified,5 个条目全部有效;--write-format没有改动plugin.json中声明,并在仓库 README 中说明(gopls、go、dlv)downloadURL/sha256,没有删除历史版本(撤回除外):例外。这次修改了 1.0.0 的sha256,原因是维护者要求以同一版本号重发,原来的包已经不存在。downloadURL不变,没有删除历史版本。验证:重发的包已经在 lithe-plugin-go 的宿主 e2e(
node scripts/e2e-host.mjs,宿主为 1lck/Lithe-IDEA#1976,Core9425469)中通过TestOfficialGoPluginDebugsEachProjectOfAWorkspaceWithDelve和TestOfficialGoPluginBuildsAndServesAModule。CI 打出的包和本地打出的包内容逐文件一致,只有 zip 字节不同。没有在宿主里从插件市场实际安装。