Skip to content

Commit 7686dab

Browse files
authored
Unbreak devcontainer (langchain-ai#8154)
Codespaces and devcontainer was broken by the [repo restructure](langchain-ai#8043). - Description: Add libs/langchain to container so it can be built without error. - Issue: - - Dependencies: - - Tag maintainer: @hwchase17 @baskaryan - Twitter handle: @finnless The failed build log says: ``` langchain-ai#10 [langchain-dev-dependencies 2/2] RUN poetry install --no-interaction --no-ansi --with dev,test,docs langchain-ai#10 sha256:e850ee99fc966158bfd2d85e82b7c57244f47ecbb1462e75bd83b981a56a1929 2023-07-23 23:30:33.692Z: langchain-ai#10 0.827 langchain-ai#10 0.827 Directory libs/langchain does not exist 2023-07-23 23:30:33.738Z: langchain-ai#10 ERROR: executor failed running [/bin/sh -c poetry install --no-interaction --no-ansi --with dev,test,docs]: exit code: 1 ``` The new pyproject.toml imports from libs/langchain: https://github.com/langchain-ai/langchain/blob/77bf75c236351edf47d3a76a522bb45ccc90d299/pyproject.toml#L14-L16 But libs/langchain is never added to the dev.Dockerfile: https://github.com/langchain-ai/langchain/blob/77bf75c236351edf47d3a76a522bb45ccc90d299/libs/langchain/dev.Dockerfile#L37-L39
1 parent fb62f2b commit 7686dab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libs/langchain/dev.Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ ARG PYTHON_VIRTUALENV_HOME
3737
# Copy only the dependency files for installation
3838
COPY pyproject.toml poetry.toml ./
3939

40+
# Copy the langchain library for installation
41+
COPY libs/langchain/ libs/langchain/
42+
4043
# Install the Poetry dependencies (this layer will be cached as long as the dependencies don't change)
4144
RUN poetry install --no-interaction --no-ansi --with dev,test,docs

poetry.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[virtualenvs]
2+
in-project = true
3+
4+
[installer]
5+
modern-installation = false

0 commit comments

Comments
 (0)