Repository navigation
Description
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
- 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) printsrun 'proofline update'on every operating system, Windows included. proofline updaterunsinstall()(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 noHOMEvariable, so it stops withset HOME or PROOFLINE_INSTALL_DIR.- If
HOMEorPROOFLINE_INSTALL_DIRis set,install_path()(src/update.rs:302-318) expects a file called<folder>/proofline, with no.exe. The Windows binary isproofline.exe, so the paths never match, and it says the binary is "outside the installer directory", even whenPROOFLINE_INSTALL_DIRis the very folder that holds it. - 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 hasproofline-x86_64-pc-windows-msvc.tar.gz(in v0.5.2 too). - 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 sourceAnd 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
[-]`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[/+]Ahmar004 commentedon Nov 23, 2026
I opened #84 with the fix described above (Windows only; Linux and macOS behave as before).