Skip to content

fix(cli): normalize auth and encryption paths to POSIX format#6983

Open
Br1an (Br1an67) wants to merge 1 commit intolangchain-ai:mainfrom
Br1an67:fix/issue-5815-windows-auth-path
Open

fix(cli): normalize auth and encryption paths to POSIX format#6983
Br1an (Br1an67) wants to merge 1 commit intolangchain-ai:mainfrom
Br1an67:fix/issue-5815-windows-auth-path

Conversation

@Br1an67
Copy link

Description: Normalize Windows paths to POSIX format in _update_auth_path and _update_encryption_path by calling .as_posix() on relative_to() results. This matches the existing pattern used in _update_graphs_paths (line 576, 583) where container_path.as_posix() and container_subpath.as_posix() are already called. Without this, on Windows the LANGGRAPH_AUTH ENV in the generated Dockerfile contains backslash path separators (e.g. flowee\\security\\auth.py) instead of forward slashes.

Issue: Fixes #5815

Dependencies: None

Use .as_posix() on relative path segments in _update_auth_path and
_update_encryption_path, matching the existing pattern in
_update_graphs_paths. On Windows, pathlib produces backslashes in
relative_to() results, which get written into Dockerfile ENV values
causing invalid container paths.

Fixes langchain-ai#5815
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant