diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54fe7eb..992b541 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,9 +30,10 @@ jobs: GH_TOKEN: ${{ github.token }} # v0.0.1 follows plugin contract v0, which only the new desktop # client installs, and that client ships as desktop-v* pre-releases. - # v0.1.0's Delve adapter needs the host's tcpAnnounced transport, - # which no desktop release has yet. - PRERELEASE_TAGS: v0.0.1 v0.1.0 + # v1.0.0 needs the host's tcpAnnounced debug transport and + # commandInstallers (1lck/Lithe-IDEA#1954, #1964, #1971), which no + # desktop release has yet. + PRERELEASE_TAGS: v0.0.1 v1.0.0 run: | prerelease=false for tag in $PRERELEASE_TAGS; do diff --git a/README.md b/README.md index 41c5b9d..3c16b3d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ > The plugin is a `plugin.json` and a few project templates, with no executables and no backend process. > **预发布**:按插件契约 v0(`schemaVersion: 0`、`pluginAPIVersion: 0`)编写,只能装进新版 Lithe 桌面端 -> (`desktop-v*` 预发布),旧版 macOS Lithe 无法安装。0.1.0 的调试需要宿主支持 `tcpAnnounced` 调试适配器 +> (`desktop-v*` 预发布),旧版 macOS Lithe 无法安装。1.0.0 的调试需要宿主支持 `tcpAnnounced` 调试适配器 > ([1lck/Lithe-IDEA#1954](https://github.com/1lck/Lithe-IDEA/pull/1954)),`go` 工具定义需要固定了 Rust Core > 6477e9a 或更新版本的桌面端([1lck/Lithe-IDEA#1964](https://github.com/1lck/Lithe-IDEA/pull/1964)), > 在插件详情里安装 gopls 和 dlv 需要固定了 Core c550c2b 或更新版本、支持 `commandInstallers` 的桌面端 @@ -190,7 +190,7 @@ node scripts/package.mjs ```bash node scripts/package.mjs -LITHE_TEST_GO_PLUGIN_ARCHIVE="$PWD/dist/go-support-0.1.0-darwin.zip" node scripts/e2e-host.mjs +LITHE_TEST_GO_PLUGIN_ARCHIVE="$PWD/dist/go-support-1.0.0-darwin.zip" node scripts/e2e-host.mjs ``` 插件包路径要写绝对路径。脚本把固定版本的宿主(只取 `desktop/` 和 `scripts/`)检出到 `.artifacts/lithe-host`, @@ -206,16 +206,17 @@ Lithe 主仓库的功能矩阵不收录插件能力,改动插件行为时在 ## 发布新版本 1. 按语义化版本修改 `io.github.lithe-idea.go-support/plugin.json` 的 `version`:只修 Bug 升修订号, - 加功能升次版本号,有不兼容的变化升主版本号。合入 `main`。 + 加功能升次版本号,有不兼容的变化升主版本号。要求能装上一版的宿主没有的能力或 Core 版本,也算不兼容; + 1.0.0 以下同样适用,0.y.z 有不兼容的变化时升到 1.0.0。合入 `main`。 2. 推送同名标签: ```bash - git tag v0.1.0 && git push origin v0.1.0 + git tag v1.0.0 && git push origin v1.0.0 ``` 3. `Release` 工作流会核对标签与版本一致、打包并发布 Release(说明里附 SHA-256 和 `docs/releases/v<版本>.md`)。`release.yml` 里 `PRERELEASE_TAGS` 列出的版本会标为预发布版本: - 目前是只能装进新版桌面端的 `v0.0.1`,以及调试依赖宿主 #1954 的 `v0.1.0`。 + 目前是只能装进新版桌面端的 `v0.0.1`,以及依赖宿主 #1954、#1964、#1971 的 `v1.0.0`。 4. Lithe Store 的自动追踪会发现稳定版本并开合并请求,合并后用户即可在 Lithe 中更新。自动追踪会跳过预发布版本; 需要收录时在 Store 中手工提交条目,并使用已发布 ZIP 的实际 SHA-256。 diff --git a/docs/releases/v0.1.0.md b/docs/releases/v1.0.0.md similarity index 80% rename from docs/releases/v0.1.0.md rename to docs/releases/v1.0.0.md index 60bdac4..454188e 100644 --- a/docs/releases/v0.1.0.md +++ b/docs/releases/v1.0.0.md @@ -1,4 +1,9 @@ -0.1.0 加入 Delve 调试和新建 Go 项目。 +1.0.0 加入 Delve 调试、新建 Go 项目、GOROOT 选择,以及在插件详情里安装 gopls 和 dlv。本版本要求更新的 Lithe 桌面端,能装 0.0.1 的桌面端装不了它,所以升主版本号。 + +升级说明: +- 不兼容的变化只有一项:本版本需要更新的桌面端(要求见下面“兼容性”第一条)。能装 0.0.1 的桌面端都早于这些改动,会拒绝安装或更新到本版本。 +- 需要做的:先把 Lithe 桌面端更新到包含 1lck/Lithe-IDEA#1971 的版本,再安装本版本。 +- 设置不需要迁移:Go executable 和四项 gopls 设置的键和取值都没变,0.0.1 的构建任务、运行入口、测试和依赖列表全部保留。 功能: - 调试:「调试」窗口里的 Go (Delve) 适配器用你电脑上的 `dlv dap` 调试当前文件所在的包,支持断点、单步、调用栈、变量和表达式求值;程序结束后会话自动结束,程序输出留在调试控制台。 diff --git a/e2e/host/lithe-host.json b/e2e/host/lithe-host.json index 38157c3..349ffae 100644 --- a/e2e/host/lithe-host.json +++ b/e2e/host/lithe-host.json @@ -6,7 +6,7 @@ "./internal/workbench": "^TestOfficialGoPlugin(BuildsAndServesAModule|DebugsAModuleWithDelve)$" }, "requiredEnvironment": { - "LITHE_TEST_GO_PLUGIN_ARCHIVE": "go-support--darwin.zip to install, for example dist/go-support-0.1.0-darwin.zip" + "LITHE_TEST_GO_PLUGIN_ARCHIVE": "go-support--darwin.zip to install, for example dist/go-support-1.0.0-darwin.zip" }, "repositoryEnvironment": { "LITHE_PLUGIN_GO_DIR": "io.github.lithe-idea.go-support" diff --git a/io.github.lithe-idea.go-support/plugin.json b/io.github.lithe-idea.go-support/plugin.json index 644b6c2..25a2d4e 100644 --- a/io.github.lithe-idea.go-support/plugin.json +++ b/io.github.lithe-idea.go-support/plugin.json @@ -2,7 +2,7 @@ "schemaVersion": 0, "id": "io.github.lithe-idea.go-support", "displayName": "Go Support", - "version": "0.1.0", + "version": "1.0.0", "pluginAPIVersion": 0, "requires": { "buildSystems": 0,