ansigenome
ansigenome copied to clipboard
errors when handling missing meta/main.yml
roles without meta/main.yml files seem to produce spurious dependencies. I think this is due to a mistake in scan.py around line 202:
if not os.path.exists(self.paths["meta"]): return "" should perhaps be if not os.path.exists(self.paths["meta"]): self.dependencies=[] return ""
Are you saying it's reporting dependencies for the wrong role (the last role with a meta/main.yml) as is?
Are you saying it's reporting dependencies for the wrong role as is?
Yes. If role A depends, via meta/main.yml, on role B but role B has no meta/main.yml file, role B is reported as depending on itself. Creating an empty meta/main.yml yields the expected behaviour.
I'd happily accept a PR if you wanted to create one.