Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 的桌面端
Expand Down Expand Up @@ -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`,
Expand All @@ -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。

Expand Down
7 changes: 6 additions & 1 deletion docs/releases/v0.1.0.md → docs/releases/v1.0.0.md
Original file line number Diff line number Diff line change
@@ -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` 调试当前文件所在的包,支持断点、单步、调用栈、变量和表达式求值;程序结束后会话自动结束,程序输出留在调试控制台。
Expand Down
2 changes: 1 addition & 1 deletion e2e/host/lithe-host.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"./internal/workbench": "^TestOfficialGoPlugin(BuildsAndServesAModule|DebugsAModuleWithDelve)$"
},
"requiredEnvironment": {
"LITHE_TEST_GO_PLUGIN_ARCHIVE": "go-support-<version>-darwin.zip to install, for example dist/go-support-0.1.0-darwin.zip"
"LITHE_TEST_GO_PLUGIN_ARCHIVE": "go-support-<version>-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"
Expand Down
2 changes: 1 addition & 1 deletion io.github.lithe-idea.go-support/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading