<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Is it possible to override a repository path locally? E.g. when working<br>
> offline and a working copy of libhello.git##HEAD is available in<br>
> ~/dev/libhello.<br>
<br>
Yes, though there are several slightly different ways to do it<br>
depending on what exactly you are trying to achieve.<br>
<br>
Firstly, if you are planning to develop libhello, then you should<br>
just initialize the local clone with bdep-init(1) in the same build<br>
configuration as discussed in "Developing Multiple Packages and<br>
Projects":<br>
<br>
<a href="https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-dev-multi" rel="noreferrer" target="_blank">https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-dev-multi</a></blockquote><div><br></div><div>I want to develop consumers of libhello, without having to download it from the repository. I've managed to accomplish it manually by using b and setting config.import.libfoobar to the out_root of libfoobar. But if it can be done via bdep that would be great. Below is an example using two of my own projects.</div><div><br></div><div>mkdir -p /tmp/dev</div><div>cd /tmp/dev</div><div>git clone <a href="https://github.com/sequence-point/libunittest.git">https://github.com/sequence-point/libunittest.git</a></div><div>git clone <a href="https://github.com/sequence-point/libirina.git">https://github.com/sequence-point/libirina.git</a></div><div><br></div><div>(let's say I've left the office, not having access to the internet anymore)</div><div><br></div><div>cd libunittest</div><div>bdep init -C ../build-clang @clang cc config.cxx=clang++</div><div><br></div><div>cd ../libirina</div><div>bdep init -A ../build-clang @clang</div><div><br></div><div>bdep now tries to download libunittest although it already is available locally in ../build-clang.</div><div><br></div><div>Am I missing something?</div><div><br></div><div>// Per</div></div></div>