docs
docs copied to clipboard
How to transit tools.get_env to Conan 2.x schema?
The current migration guide covers most of important parts, but the migration is not totally clear about environment variables.
Some recipes, they collect external environment variables, and so far tools.get_env it's the current option.
With the introduction of conan.tools.env, we should consider configuration files instead, but it's not totally clear how to do it.
It would be great if it was documented and specified as a replacement for tools.get_env.
From what I see in conan.tools source code, there is no tool for this, so back to os.environ.get()...
I've opened https://github.com/conan-io/conan/issues/11969
@SpaceIm thank you @SpaceIm !!