From 5545448c6f85273c0b7df25fd6d4b1d5c9a11cb4 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 6 May 2024 06:37:34 -0300 Subject: [PATCH] fix: add workaround for libssl in core20 Signed-off-by: Claudio Matsuoka --- craft_store/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/craft_store/auth.py b/craft_store/auth.py index 8a13d30..eaab80c 100644 --- a/craft_store/auth.py +++ b/craft_store/auth.py @@ -30,11 +30,14 @@ import keyring.backends.fail import keyring.errors from keyring._compat import properties -from keyring.backends import SecretService from xdg import BaseDirectory # type: ignore[import] from . import errors +# workaround to prevent legacy provider loading in focal +os.environ["CRYPTOGRAPHY_OPENSSL_NO_LEGACY"] = "1" +from keyring.backends import SecretService # noqa: E402 + logger = logging.getLogger(__name__)