From 11aed400f86951593bb60d1e853574b67894b0b3 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 (cherry picked from commit 6d976477df3f2e6994079dca56d48e181ede7ebb) --- 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 99753b01..216b5d7c 100644 --- a/lookup/py_pkgs.py +++ b/lookup/py_pkgs.py @@ -356,7 +356,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: