From 1e74870e08b138cbbd4dcabfcc2341db29bbf95c Mon Sep 17 00:00:00 2001 From: Qiheng He Date: Tue, 1 Dec 2026 13:48:58 +0800 Subject: [PATCH] docs: record release 0.1.5 and drop the Unreleased marks Release v0.1.5 is published at d6e9fa6, so the Unreleased section of both changes pages moves under 0.1.5. Two entries that said "before" without a version now name one. --- docs/changes.md | 13 +++++++------ docs/zh-CN/changes.md | 8 ++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/changes.md b/docs/changes.md index c4c05f9..43bbfcc 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -6,7 +6,7 @@ What changed in each release, as a user notices it. GitHub's [release pages](https://github.com/version-fox/vfox-gradle/releases) list the releases. -## Unreleased +## 0.1.5 (2026-12-01) - Windows: `vfox link --detect gradle` no longer runs part of a directory name as a command. Releases 0.1.3 and 0.1.4 quoted a path only when it had a space, so a @@ -15,8 +15,8 @@ releases. character is not searched. See [GHSA-c5q7-hrr6-gvrm](https://github.com/version-fox/vfox-gradle/security/advisories/GHSA-c5q7-hrr6-gvrm). - Windows: a Gradle in a folder without a version in its name is found from the - version of its launcher jar, which the `lib` listing could not show before: it - listed directories only. + version of its launcher jar. Releases 0.1.3 and 0.1.4 listed `lib` for directories + only, so the version in that jar was never read. - `vfox link --detect gradle` links each mise release to its own folder. mise's links `8`, `8.14` and `latest` are no longer taken for releases, so a link does not move to a newer release when mise installs one. See @@ -35,11 +35,12 @@ releases. [#16](https://github.com/version-fox/vfox-gradle/issues/16). - `vfox doctor` checks installs of releases before 9.4.0 too: it records the launcher jar of each install and reports a deleted jar as drift. - Installs made before this release record nothing, so they are checked once they + Installs made before 0.1.5 record nothing, so they are checked once they are installed again. See [#15](https://github.com/version-fox/vfox-gradle/issues/15). -- vfox shows one hint for another `gradle` that a manager installed, not one per - matching word, and the commands in the hints work: `sdk uninstall gradle `, +- vfox shows one hint for another `gradle` that a manager installed. Releases 0.1.3 + and 0.1.4 printed one for each entry that matched its path, so one Gradle could get + several. The hints name commands that work: `sdk uninstall gradle `, `mise uninstall gradle@` and `asdf uninstall gradle `. The WinGet hint no longer names `Gradle.Gradle`, which the WinGet source did not list when it was checked, and the catch-all hint for any other `gradle` is gone. See diff --git a/docs/zh-CN/changes.md b/docs/zh-CN/changes.md index e8c9c4a..3809769 100644 --- a/docs/zh-CN/changes.md +++ b/docs/zh-CN/changes.md @@ -4,15 +4,15 @@ 每个版本改了什么,从用户的角度来写。GitHub 的[发布页](https://github.com/version-fox/vfox-gradle/releases)列出了各个版本。 -## 未发布 +## 0.1.5(2026-12-01) - Windows 上的 `vfox link --detect gradle` 不再把目录名的一部分当作命令执行。0.1.3 和 0.1.4 只在路径有空格时加引号,所以 `C:\Gradle\a&b` 这样的文件夹可以以运行 vfox 的用户的权限执行命令。现在所有路径都加引号,含有 `%`、双引号或控制字符(比如换行)的路径不再搜索。见 [GHSA-c5q7-hrr6-gvrm](https://github.com/version-fox/vfox-gradle/security/advisories/GHSA-c5q7-hrr6-gvrm)。 -- Windows 上,目录名里没有版本的 Gradle 会从它的 launcher jar 得到版本,以前列出 `lib` 时只列目录,看不到这个 jar。 +- Windows 上,目录名里没有版本的 Gradle 会从它的 launcher jar 得到版本。0.1.3 和 0.1.4 版列出 `lib` 时只列目录,所以读不到 jar 里的版本。 - `vfox link --detect gradle` 为 mise 的每个发行版链接它自己的目录。mise 的链接 `8`、`8.14` 和 `latest` 不再被当作发行版,所以 mise 装了新版本之后,链接不会挪到更新的版本上。见 [#14](https://github.com/version-fox/vfox-gradle/issues/14)。 - Homebrew:链接的是 keg 里的 `libexec`(有 Gradle `lib` 的目录),用发行版本号命名,而不是 `9.7.0_1` 这样的 keg 名字。见 [#17](https://github.com/version-fox/vfox-gradle/issues/17)。 - `vfox link --detect gradle` 还会找到 Gradle 手册里 `/opt/gradle` 和 `/usr/local/gradle` 中的 Gradle、Arch 的 `/usr/share/java/gradle`、MacPorts 的 `/opt/local/share/java/gradle`、snap 的 `/snap/gradle/current/opt/gradle`,以及 `GRADLE_HOME`。Windows 上还会找到 Scoop 的 `gradle-bin` 和 `gradle4` 到 `gradle7` 应用:用户目录依次取自 `SCOOP`、Scoop 的 `root_path` 或 `~\scoop`,全局目录依次取自 `SCOOP_GLOBAL`、Scoop 的 `global_path` 或 `%ProgramData%\scoop`;以及 `ChocolateyInstall` 下的 Chocolatey。见 [#16](https://github.com/version-fox/vfox-gradle/issues/16)。 -- `vfox doctor` 也会检查 9.4.0 之前的发行版:记下每个安装的 launcher jar,jar 被删掉时报告为 drift。本版本之前装的版本不记录任何东西,重新安装之后才会检查。见 [#15](https://github.com/version-fox/vfox-gradle/issues/15)。 -- `vfox doctor` 和 `vfox use` 给出的另一个 `gradle` 的提示,现在只给一条(以前会给好几条),给出的命令都能用:`sdk uninstall gradle `、`mise uninstall gradle@`、`asdf uninstall gradle `。WinGet 的提示不再写 `winget uninstall Gradle.Gradle`(检查时 WinGet 的源里没有这个包),适用于任何 `gradle` 的笼统提示也删掉了。见 [#18](https://github.com/version-fox/vfox-gradle/issues/18)。 +- `vfox doctor` 也会检查 9.4.0 之前的发行版:记下每个安装的 launcher jar,jar 被删掉时报告为 drift。0.1.5 之前装的版本不记录任何东西,重新安装之后才会检查。见 [#15](https://github.com/version-fox/vfox-gradle/issues/15)。 +- `vfox doctor` 和 `vfox use` 给出的另一个 `gradle` 的提示,现在只给一条(0.1.3 和 0.1.4 版会给好几条),给出的命令都能用:`sdk uninstall gradle `、`mise uninstall gradle@`、`asdf uninstall gradle `。WinGet 的提示不再写 `winget uninstall Gradle.Gradle`(检查时 WinGet 的源里没有这个包),适用于任何 `gradle` 的笼统提示也删掉了。见 [#18](https://github.com/version-fox/vfox-gradle/issues/18)。 - 文档现在写明:wrapper 项目需要 vfox 1.1.0 或更高版本,`vfox current` 会忽略 wrapper,`ctx.path` 取决于 `vfox use` 的作用域,没有装的固定版本不会被报告。别名和它的插件都可能拿到共用的链接 `~/.vfox/sdks/gradle`。见 [#19](https://github.com/version-fox/vfox-gradle/issues/19)。 ## 0.1.4(2026-12-01)