igir icon indicating copy to clipboard operation
igir copied to clipboard

Replace node-disk-info library

Open emmercm opened this issue 6 months ago • 2 comments

Paste the command

N/A

Describe the bug

node-disk-info hasn't had an update in 4.5 years, and the author has stopped responding to GitHub issues.

It relies on the wmic command on Windows, which is going away: https://support.microsoft.com/en-us/topic/windows-management-instrumentation-command-line-wmic-removal-from-windows-e9e83c7f-4992-477f-ba1d-96f694b8665d

RE: https://github.com/cristiammercado/node-disk-info/issues/29

Expected behavior

Igir should work on all modern OSes.

Debug logs

N/A

DAT(s) used

No response

igir version

v4.2.0

Node.js version

N/A

Operating system

Windows

Additional context

No response

emmercm avatar Oct 08 '25 22:10 emmercm

https://github.com/balena-io-modules/drivelist looks like a good option, and it uses native addons instead of parsing CLI output.

emmercm avatar Oct 08 '25 23:10 emmercm

https://github.com/balena-io-modules/drivelist doesn't have any prebuilds (https://github.com/balena-io-modules/drivelist/issues/419), and it suffers from https://github.com/nodejs/node-gyp/issues/65 (can't have spaces in the path name).

emmercm avatar Oct 09 '25 23:10 emmercm