conan-io / conan-io/docs

How to transit tools.get_env to Conan 2.x schema?

Open
#2,709 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

The current [migration guide](https://docs.conan.io/en/latest/conan_v2.html) 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](https://docs.conan.io/en/latest/reference/tools.html#tools-get-env) it's the current option.

With the introduction of [conan.tools.env](https://docs.conan.io/en/latest/reference/conanfile/tools/env.html), 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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.