diff --git a/tasks/libs/common/gomodules.py b/tasks/libs/common/gomodules.py index e133eef242305..68571a3652659 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.