fix(storage): an unfinished install can be removed #417
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!417
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/remove-unfinished-install"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A user ended up with the same nightly listed twice under Settings › Storage › Installed versions, with no way to remove one of them. The second one is an install that never finished (about 1.9 GiB for them).
How it happens
Each install gets a new folder, and a folder only counts as a version once
version.jsonis written after a successful build. A failed or interrupted install keeps its folder, and starting over makes another. Storage names both after their release but offered Remove only on the finished one. Worked out from the code; I don't have the user's logs.Changes
.launcher-installingmarker. Without this, an unfinished install in a chosen (not the default) library was refused as containing an additional entry. The usual removal checks still apply.src/update.rs, which fails the format check onmain.Not changed here: new installs still don't reuse or clean up an earlier unfinished folder.
A screenshot is in the first comment.
Testing
tests/test_launcher_core.py(format, Clippy, 409 tests) and Tooling'stest_release.pypass on Linux. They ran withLONGSHOT_TEST_PLAYER_PROCESSES=LongshotLauncher, because an unrelatedlongshot-builderrunning on the PC fails two tests otherwise.🤖 Generated with Claude Code
Possibly related, for context: