Skip to content

Commit

Permalink
conf is read-only (#3449)
Browse files Browse the repository at this point in the history
* conf is read-only

* Update reference/conanfile/attributes.rst

Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>

---------

Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
  • Loading branch information
memsharded and czoido authored Nov 7, 2023
1 parent 5660561 commit 59979a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reference/conanfile/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ The profile entries have priority.
self.output.info("Custom var1: %s" % self.conf.get("user.custom.var1"))
.. note::

The ``conf`` attribute is a **read-only** attribute. It can only be defined in profiles and command lines, but it should never be set by recipes.
Recipes can only read its value via ``self.conf.get()`` method.


Output
------

Expand Down

0 comments on commit 59979a5

Please sign in to comment.