mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5019] [MERGED] fix(desktop): disk space detection #5023
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5023
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5019
Author: @CuriousCorrelation
Created: 4/24/2025
Status: ✅ Merged
Merged: 4/25/2025
Merged by: @AndrewBastin
Base:
next← Head:fix-desktop-du-units📝 Commits (1)
4b139bffix(desktop): disk space detection📊 Changes
7 files changed (+287 additions, -120 deletions)
View changed files
📝
packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/Cargo.lock(+88 -14)📝
packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/Cargo.toml(+1 -1)📝
packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/storage/error.rs(+3 -0)📝
packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/storage/layout.rs(+1 -1)📝
packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/storage/manager.rs(+22 -6)📝
packages/hoppscotch-desktop/src-tauri/Cargo.lock(+101 -27)📝
pnpm-lock.yaml(+71 -71)📄 Description
Appload fails to load with a "Storage full" error despite having sufficient disk space. This was caused by a unit mismatch assumption where the
sys-infocrate returns disk space in kilobytes instead of previously assumed bytes.This PR replace
sys-info v0.9.1with the more actively maintainedsysinfo 0.34.2which does return size of the disk in bytes.Closes #5017
Closes HFE-831
Rebased on #5010, consider merging that first.
Issues:
github.com/FillZpp/sys-info-rs@60ecf1470a/c/linux.c (L119)StorageFullerror was triggered when comparing raw bytes against a KB value, causing false positiveWhat's changed
sys-info v0.9.1withsysinfo 0.34.2which return size of the disk in bytes.ensure_spacefunction to find the correct disk of the config dirStorageError::DiskNotFoundfor cases where the disk cannot be resolved🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.