Skip to content

Latest commit

 

History

History
81 lines (55 loc) · 7.01 KB

changes.md

File metadata and controls

81 lines (55 loc) · 7.01 KB

中文 | English

Changes

What changed in each release, as a user notices it.

Unreleased

Fixed

  • With VFOX_ELIXIR_MIRROR=hex, vfox checks the zip against the SHA-256 that builds.txt publishes for the build, before it unpacks the zip (Verifying checksum ...). Before, the plugin passed no checksum to vfox, so the install printed Checksum is not provided even when the index had one. A build whose line in builds.txt has no SHA-256 still installs, with that warning. If builds.txt cannot be read, the install stops before the download (#44).

1.0.5 - 2026-11-22

Fixed

  • vfox link --detect no longer lists an installation whose bin/elixir has no execute bit. vfox cannot link such an installation: vfox link --detect -y failed on it and exited with status 1, even when the other installations were linked (#41).

1.0.4 - 2026-11-22

Fixed

  • When a source build fails in make, the message no longer prints an exit code. The number it printed was the value of os.execute, which is not the exit status of make. The message now says that make stopped with an error and points to the output above (#37).
  • On Windows, when the official installer fails, the message no longer prints an exit code. The number it printed was the value of os.execute, which is not the exit status of the installer. The message now says that the installer stopped with an error and points to the output above (#37).

1.0.3 - 2026-11-22

Fixed

  • With VFOX_ELIXIR_MIRROR=hex, vfox install elixir@latest no longer prints the hint about vfox search elixir hex. vfox calls the same hook for vfox search elixir and for latest, so the hook cannot print the hint for the search alone, and the search no longer prints it either. vfox search elixir hex still lists the hex.pm builds (#35).
  • With VFOX_ELIXIR_MIRROR=hex, the warning about a name without an -otp-N suffix is printed after the build is downloaded, not before. A name that hex.pm does not have gets only the download error (#35).

1.0.2 - 2026-11-22

Fixed

  • Linux and macOS: a source build stops before make when the vfox home path holds a space or another character that the shell reads. Elixir's Makefile cannot build in such a path, and the build used to fail inside make. The docs said that Elixir's installs handle a space in the vfox home on every platform; that was not true for source builds (#31).
  • With VFOX_ELIXIR_MIRROR=hex, latest resolved to 1.20-latest, which has no pre-built build, and the install failed on the download. The install now stops before the download and names a build to install instead (#27).
  • vfox search elixir hex lists only the builds whose name has an OTP suffix, such as 1.16.2-otp-26. A build without one, such as 1.20.5, can refuse to run under another Erlang/OTP, so it is no longer listed (#28).
  • With VFOX_ELIXIR_MIRROR=hex, the hint about vfox search elixir hex goes to standard error, not into the version list (#29).
  • A version list that a server sends as plain text with status 200, such as Error code: 404, is no longer listed or cached as versions. The search and the install stop with the same message as for an error page (#30).
  • The README said that the plugin manages the Erlang/OTP that each version needs. The plugin does not install Erlang/OTP, and the README now says so (#32).

Changed

  • With VFOX_ELIXIR_MIRROR=hex, vfox install prints the Erlang/OTP that a build needs. It warns when the name has no OTP suffix, because the build may then refuse to run under another Erlang/OTP (#28).

1.0.1 - 2026-11-22

Added

  • vfox link --detect elixir finds the Elixir already installed by the system, asdf, mise, Homebrew, Scoop or the official installer, and links it instead of installing another copy. It needs vfox 1.1.0 or later. See link.md.
  • Documentation in English and Chinese: versions, platforms, Erlang/OTP, hex prebuilt packages, linking, troubleshooting, development and the E2E tests.
  • Offline hook tests, and checks of the Lua, Go and Python code, of the license headers and of the workflow files.
  • E2E tests for Linux, macOS and Windows, and a development container (.devcontainer).
  • The repository's opencode.jsonc adds allow rules for git push, gh pr create and gh pr comment for OpenCode sessions in this repository.

Fixed

  • Windows: an install failed when the vfox home path contains a space, because the installer path was not quoted.
  • Windows: a release candidate such as 1.19.0-rc.2-elixir-otp-28 downloaded from a wrong address.
  • Windows: the installer ran from a fixed relative path inside the plugin directory. It now runs against the install directory that vfox provides.
  • Windows: a failed installer run reported Erlang/OTP install failed. The message now says Elixir.
  • Windows: the installer file was left in the plugin directory after the install. It is now removed after the installer runs.
  • Windows: the installer command passed PowerShell-only options (-Wait -PassThru) to the installer. They are removed.
  • Linux and macOS: a source build failed when the install path contains a space, or ran make in the wrong directory and reported success (#20).
  • A network failure while the version list was fetched crashed the plugin. It now reports the error. An error page or an empty answer from the server was listed as versions and cached; the plugin now stops with the status or a message instead (#22).
  • The version-list script of the update workflow exited successfully when the GitHub API failed, which kept stale data. It now fails.
  • The update workflow set a malformed git user name (github-actions[bot] written twice).
  • Removed code that could never run: a check against a variable that vfox does not set, and an unused helper function.
  • The plugin description shown by vfox add said "Uinx-like"; it now says "Unix-like".
  • The website's and the docs' vfox exec examples ran elixir without Erlang/OTP, which failed with exec: erl: not found. They name Erlang/OTP now (#24).

Changed

  • Windows: VFOX_ELIXIR_MIRROR=hex stops with an error that Windows is not supported, before anything is downloaded. Before, the plugin tried to download the installer and failed.
  • Windows: a version name that does not end in -elixir-otp-<N> is refused before anything is downloaded, with a hint to run vfox search elixir.
  • vfox use for a version that is not installed reports is not installed. Before, it stopped with a Lua error (#21).
  • A name without an OTP suffix selects the installed build with the highest OTP number. vfox use elixir@1.16.2 selects 1.16.2-otp-26 over 1.16.2-otp-25, and vfox use elixir@main selects main-otp-26 when it is installed.
  • Source builds look for erlc in vfox's own Erlang cache too, and report what to install when no erlc is found (#23).
  • vfox search elixir hex lists the hex.pm builds. VFOX_ELIXIR_MIRROR no longer changes the search list, only the install: vfox keeps each search result by its argument, so the hex.pm builds and the releases no longer show for each other (#22).