fix: check for minisign before verification and show clear error #6

Open
opened 2026-05-17 12:08:09 +02:00 by michael · 0 comments
Owner

Problem

sig.lua attempts to verify a signature but fails with a misleading error
when minisign is not installed:

[ERROR] sig: no key in keyring validated

The actual problem is that minisign is not installed, not that the key
is missing or invalid.

Fix

Check for minisign binary before attempting verification:

local rc, _ = io_:run_rc('command -v minisign')
if rc ~= 0 then
return nil, '[ERROR] sig: minisign not found'
.. ' -- install with: pkg_add minisign (OpenBSD)'
.. ' or: apt install minisign (Debian/Arch)'
end

Refs

## Problem sig.lua attempts to verify a signature but fails with a misleading error when minisign is not installed: [ERROR] sig: no key in keyring validated <path> The actual problem is that minisign is not installed, not that the key is missing or invalid. ## Fix Check for minisign binary before attempting verification: local rc, _ = io_:run_rc('command -v minisign') if rc ~= 0 then return nil, '[ERROR] sig: minisign not found' .. ' -- install with: pkg_add minisign (OpenBSD)' .. ' or: apt install minisign (Debian/Arch)' end ## Refs - DAW/merkwerk#30 (dependency detection)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-module-manager#6
No description provided.