chroma
chroma copied to clipboard
[Install issue]: Build fails: "protoc failed: Could not make proto path relative: idl/chromadb/proto/chroma.proto: No such file or directory"
What happened?
When building the Docker image for ChromaDB, the build process fails during the compilation of the chroma-types crate. The error indicates that the protoc compiler cannot locate the file idl/chromadb/proto/chroma.proto, which prevents the custom build script from completing successfully.
Steps to Reproduce:
Clone the repository. Run the Docker build command (e.g., docker build -t chromadb .). The build fails at the final step with the following error message:
Error: Custom { kind: Other, error: "protoc failed: Could not make proto path relative: idl/chromadb/proto/chroma.proto: No such file or directory\n" } Expected Behavior: The Docker image should build successfully, compiling all necessary crates and including the Protobuf definitions without any errors.
Actual Behavior: The build process fails because the file idl/chromadb/proto/chroma.proto is not found in the Docker build context, causing protoc to error out.
Environment:
Additional Context:
The build script for the chroma-types crate expects Protobuf files to be present in the idl/chromadb/proto/ directory. It appears that either the file is missing from the repository or the path is not correctly configured in the Docker build context. Please verify if the file chroma.proto should be included or if the build script needs to be updated to reflect a new directory structure. Any guidance on how to resolve this issue or suggestions for a workaround would be greatly appreciated. Thank you!
Versions
OS: Windows 11 Docker Version: Docker version 4.39.0
Relevant log output