Skip to content
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

Add warning about not having conditional source methods #3773

Open
wants to merge 1 commit into
base: release/2.4
Choose a base branch
from

Conversation

AbrilRBS
Copy link
Member

Thinking ahout adding some information to let users know that they have the alternative approach of using the build() method if needed

.. note::

The ``source()`` method _MUST NOT_ be conditional to any configuration, so it should be the same for all configurations.
Settings and options access is disallowed in this method, and recipes should not set any conditionals based on the platform either
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can relax and suggest that platform.system and similar can be used at the responsibility of users and knowing it will not be cross-platform, etc? Because this is kind of a bad thing, but it sometimes happen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants