Open zrho opened 1 month ago
I think that the "workaround" is actually the right answer. We should fix the documentation in libs/README.md
to reflect this.
The tests for the libraries require the library without the @tket/stable
suffix, while the libraries and tket itself require each other with the @tket/stable
suffix. So when a library is built using --user tket --channel stable
, so that it can be found as a dependency, it in turn can no longer be found by its own test.
When attempting to build the conan dependencies from scratch, the
tkassert
library can not find the previously compiledtklog
library when running the following (as per the build instructions):The error message is as follows:
Note that this only occurs when the precompiled tket remote is not set; otherwise
conan
will not find the locally compiledtklog
but will happily use the published one.This can be fixed by adding the
user
andchannel
field to the conanfile fortklog
as follows:Similar changes would also be required for the conanfiles of the other libraries.
I have never used conan before, so I don't know if that change would have unintended consequences.
A workaround is to use the CLI arguments
--user tket --channel stable
when usingconan create
for the libraries. I see that this has been indicated in the docs for building the main tket library in https://github.com/CQCL/tket/pull/1303