New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workspaces templates change to allow out-of-source builds #4812
workspaces templates change to allow out-of-source builds #4812
Conversation
Is it possible to use the project's folder name? I usually have package names prefixed. Assuming Boost uses workspaces: This is especially useful to run Ninja commands, e.g. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two considerations:
- This new context variable available for Jinja2 engine should be documented in the same way as hooks, not like a
ConanFileReference
, but a namedtuple: "reference: Named tuple with attributes name, version, user, and channel. Its representation will be a reference like: box2d/2.1.0@user/channel" - Should it be
reference
orref
? We can keepreference
for backwards compatibility and addref
to match our naming conventions.
@theodelrieu you will have the package name as an input, from there, if you can do it with Jinja (I think it is possible, something like @jgsogo Agree on docs for namedtuple, I'll do it that way. Regarding the name, I think we are calling it |
Pending docs |
For hooks, we thought it had been an error to name the argument |
Changelog: Fix: Allow using
reference
object in workspaces in templates for out of source buildsDocs: conan-io/docs#1135
Close #4800
The key is allowing:
@tags: slow