我正在尝试将conan
用于虚拟C ++项目(这里与语言无关),但我不喜欢弄乱用户的主目录。默认情况下,conan install
将使用~/conan/data
指定的~/conan/conan.conf
:
[storage]
# This is the default path, but you can write your own. It must be an absolute path or a
# path beginning with "~" (if the environment var CONAN_USER_HOME is specified, this directory, even
# with "~/", will be relative to the conan user home, not to the system user home)
path = ~/.conan/data
有没有办法覆盖存储目录到本地目录?
我尝试在我创建的配置文件中添加[storage]
部分,但显然conan
不喜欢它(`错误:错误读取'./locally'配置文件:ConfigParser:无法识别的字段'存储')。