Clarify dep type yielded by element.dependencies#2000
Clarify dep type yielded by element.dependencies#2000harrysarson wants to merge 1 commit intoapache:masterfrom
Conversation
|
I don't like splitting hairs in this documentation, as it is a bit redundant. The issue is what is considered "build dependencies" for an element. Rather, it may be good to provide a link in this docstring to https://docs.buildstream.build/master/format_declaring.html#dependency-types See the note where we clarify this (which is a much more satisfying explanation IMO):
Perhaps we can reword your patch in a way that links to this section and clarifies that the dependencies are build dependencies in the context of a toplevel element which invoked this function ? |
|
Yes, I can have a go at redrafting this. I think the thing that caused me confusion when I read this documentation is that the context which determines whether this function returns buildtime or runtime dependencies is whether the element you call the dependency function on is the toplevel element or one of its dependencies. |
Update the note in the docs for element.dependencies to clarify that sometimes this function returns runtime dependencies (and explain when this happens).