From 6d976477df3f2e6994079dca56d48e181ede7ebb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Sun, 3 Dec 2017 12:25:36 +0000 Subject: [PATCH] Follow symlinks in the lookup When the user gives a folder to the lookup, it's expected to work, whatever the content of the folder is. In the Zuul v3 case, we are symlinking the role that are checked out as part of the Zuul dependency resolution, for example when Depends-On is used. If we don't follow symlinks, those checkout roles aren't part of the repo build process, and won't be build. Change-Id: Ic09f6a9ee28e3f7919226f22b803ee1a1b8ad53d --- lookup/py_pkgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookup/py_pkgs.py b/lookup/py_pkgs.py index 7103a6c..d175ed1 100644 --- a/lookup/py_pkgs.py +++ b/lookup/py_pkgs.py @@ -346,7 +346,7 @@ class DependencyFileProcessor(object): :type path: ``str`` :returns: ``list`` """ - paths = os.walk(os.path.abspath(path)) + paths = os.walk(os.path.abspath(path), followlinks=True) files = list() for fpath, _, afiles in paths: for afile in afiles: