From 406af3d69cf2a01bec79a9730578d1331fc52ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9lian=20Raimbault?= <161456554+CelianR@users.noreply.github.com> Date: Fri, 15 Nov 2024 03:50:13 -0500 Subject: [PATCH] Fixed lru_cache for python <= 3.7 (#31091) --- tasks/libs/common/gomodules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/libs/common/gomodules.py b/tasks/libs/common/gomodules.py index e133eef242305f..68571a36526595 100644 --- a/tasks/libs/common/gomodules.py +++ b/tasks/libs/common/gomodules.py @@ -327,7 +327,7 @@ def dependency_path(self, agent_version): AGENT_MODULE_PATH_PREFIX = "github.com/DataDog/datadog-agent/" -@lru_cache +@lru_cache(maxsize=16) def get_default_modules(base_dir: Path | None = None) -> dict[str, GoModule]: """Load the default modules from the modules.yml file.