You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
bartoszkosiorek
changed the title
Missing information about removal of -e, and what to use instead
[bug][docs] Missing information about removal of -e, and what to use instead
Mar 21, 2024
bartoszkosiorek
changed the title
[bug][docs] Missing information about removal of -e, and what to use instead
[bug][docs] Missing information about removal of -e, -e:b and -e:h and what to use instead
Mar 21, 2024
There are no plans to allow command line global environment variables, but to rely on system ones, like:
$ MYVAR=1 conan install ...
# or
$ set MYVAR=1 && conan install ...
In general, it would be discouraged to rely on env-vars for Conan related control (the recommended way to pass information to Conan is the new conf system, with command line -c and profile [conf], and global.conf). For tools env-vars, the [buildenv] would be recommended in profiles.
Unfortanately conf is missing possibility of setting only for specific package:
Not really. The conf syntax also supports definition per package, both in CLI and in profiles with patterns and package references like: -c mypkg/*:<conf>=<conf_value>
With Conan 2 the
-e
,-e:b
and-e:h
parameters was removed:There is missing information in documentation about it (e.g. in migration guide: https://docs.conan.io/1/migrating_to_2.0/general.html#environment-variables) and how to replace it.
The text was updated successfully, but these errors were encountered: