Skip to content

On Windows the update notice says "run 'proofline update'", but that command can't work there and gives misleading errors #83

Open

Description

@Ahmar004

In simple words

On Windows, when a newer Proofline version is out, the CLI prints proofline X is available; run 'proofline update'. If you then run proofline update, it always fails, and the error sends you the wrong way (set HOME, "use your package manager", "this binary is outside the installer directory"). It never tells you the real way to update on Windows, which the README describes.

Why it happens

  1. Once a day, a background check saves the newest version number in a small cache file. On the next run in a console window, suggestion() (src/update.rs:134-147) prints run 'proofline update' on every operating system, Windows included.
  2. proofline update runs install() (src/update.rs:424). Its first step, destination() (src/update.rs:320-329), looks for the Unix installer folder: PROOFLINE_INSTALL_DIR, or else $HOME/.local/bin. A normal Windows PowerShell has no HOME variable, so it stops with set HOME or PROOFLINE_INSTALL_DIR.
  3. If HOME or PROOFLINE_INSTALL_DIR is set, install_path() (src/update.rs:302-318) expects a file called <folder>/proofline, with no .exe. The Windows binary is proofline.exe, so the paths never match, and it says the binary is "outside the installer directory", even when PROOFLINE_INSTALL_DIR is the very folder that holds it.
  4. Even past that, target() (src/update.rs:331-352) knows only Linux and macOS, and would say "no official Proofline release is built for windows". That isn't true: every release has proofline-x86_64-pc-windows-msvc.tar.gz (in v0.5.2 too).
  5. The README ("Windows installation") already says self-update doesn't install Windows binaries and gives the manual steps. The CLI just never shows them.

Who is affected

Everyone who installed the official Windows release. They get the notice on every interactive command until they update, and the command it names can't help them.

How to see it (Windows 11, main @ 105f387)

Put proofline.exe in a folder as the README says, then:

PS> proofline update                       # plain PowerShell, no HOME
proofline: set HOME or PROOFLINE_INSTALL_DIR
PS> $env:HOME = $env:USERPROFILE; proofline update
proofline: this binary is outside the installer directory C:\Users\me\.local/bin; update it through its package manager or rebuild it from source
PS> $env:PROOFLINE_INSTALL_DIR = "C:\tools"; C:\tools\proofline.exe update
proofline: this binary is outside the installer directory C:\tools; update it through its package manager or rebuild it from source

And in a console window, with a cached newer version:

proofline 9.0.0 is available; run 'proofline update'

Suggested fix

Small and limited to Windows: make proofline update on Windows print the README's verified manual steps (download the archive and SHA256SUMS, check the hash with Get-FileHash, extract it, replace this proofline.exe) and exit with an error, because nothing was updated. Change the Windows notice to say that proofline update shows how to install it. Linux and macOS stay exactly as they are.

Real self-update on Windows (moving the running .exe aside, then verifying and extracting the new one) would be a bigger feature. I'm happy to build it if you want it, but the small fix stops the dead end now. I have a PR ready for the small fix.

Activity

  1. changed the title [-]`On Windows the update notice says "run 'proofline update'", but that command can't work there and gives misleading errors`[/-] [+]On Windows the update notice says "run 'proofline update'", but that command can't work there and gives misleading errors[/+] on Nov 23, 2026
  2. Ahmar004 commented on Nov 23, 2026

    @Ahmar004
    Author

    I opened #84 with the fix described above (Windows only; Linux and macOS behave as before).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions