hyperledger / fabric

Hyperledger Fabric is an enterprise-grade permissioned distributed ledger framework for developing solutions and applications. Its modular and versatile design satisfies a broad range of industry use cases. It offers a unique approach to consensus that enables performance at scale while preserving privacy.
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
15.65k stars 8.81k forks source link

'make docs' results in "ERROR: tox config file not found" #4132

Open ghost opened 1 year ago

ghost commented 1 year ago

Following something as trivial as

https://hyperledger-fabric.readthedocs.io/en/latest/docs_guide.html#building-locally

Root Cause

I use a docker instance for development (usually one ubuntu-docker-container per project).

The relevant command

https://github.com/hyperledger/fabric/blob/42240f8b7fe767d3492984bb1988f0a348a6e0f1/Makefile#L342-L344

~uses~ runs on my setup as "docker-in-docker", which works fine, except the -v part, which mounts the volume of the HOST OS.

/docs is empty, thue the tox-container does not find the ini file

Workaround

?

Solution

?

denyeart commented 1 year ago

For Windows WSL2 is the recommended path, have you tried that? https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html#developing-on-windows

Since most of the Fabric contributors use macOS, any enhancement PRs for the Windows specific documentation would be appreciated!

ghost commented 1 year ago

For Windows WSL2 is the recommended path, have you tried that?

No, my experience says that hyper-v docker containers have less trouble than WSL2 (which I do not use at all)

But I can give it a try to see if I get the same error.