Subject: bug#76323: 30.0.93; auth-source-pass: Annoying error when ~/.password-store doesn't exist

From: "Basil L. Contovounesios" <[email-masked]>
Date: Sat, 08 Mar 2025 10:48:58 +0100

Damien Cassou [2025-02-28 13:23 +0100] wrote:

> "Basil L. Contovounesios" <[email-masked]> writes:
>> If there are no objections, I think this can be applied soon.
> ok for me. Thank you.

Thank you for confirming.

Applying the patch leads to the attached test failures.  It looks like
the tests did not require an existing auth-source-pass-filename until
now.  Perhaps the following fix is sufficient?

diff --git a/test/lisp/auth-source-pass-tests.el b/test/lisp/auth-source-pass-tests.el
index ac88f3de030..48796086970 100644
--- a/test/lisp/auth-source-pass-tests.el
+++ b/test/lisp/auth-source-pass-tests.el
@@ -92,7 +92,8 @@ auth-source-pass--with-store
      (let ((auth-source-debug #'auth-source-pass--debug)
            (auth-source-pass--debug-log nil)
            (auth-source-pass--parse-log nil))
-       ,@body)))
+       (ert-with-temp-directory auth-source-pass-filename
+         ,@body))))
 
 (defun auth-source-pass--explain-match-entry-p (entry hostname &optional user port)
   "Explainer function for `auth-source-pass-match-entry-p'.

Yasufuku-san, would you like to provide an updated patch?

Thanks,
-- 
Basil