Use more precise semver regex in sed patterns
Changed from [0-9.]\+ to [0-9]\+\.[0-9]\+\.[0-9]\+ to match proper semantic versions (e.g., 0.23.1) and avoid matching invalid patterns like .... or 1.2.3.4.5. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
63cd75884e
commit
4b47ca1391
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ COPY pyproject.toml uv.lock ./
|
|||
# and regenerate lock file to match the PyPI version
|
||||
RUN sed -i '/\[tool\.uv\.sources\]/,/graphiti-core/d' pyproject.toml && \
|
||||
if [ -n "${GRAPHITI_CORE_VERSION}" ]; then \
|
||||
sed -i "s/graphiti-core\[falkordb\]>=[0-9.]\+/graphiti-core[falkordb]==${GRAPHITI_CORE_VERSION}/" pyproject.toml; \
|
||||
sed -i "s/graphiti-core\[falkordb\]>=[0-9]\+\.[0-9]\+\.[0-9]\+/graphiti-core[falkordb]==${GRAPHITI_CORE_VERSION}/" pyproject.toml; \
|
||||
fi && \
|
||||
echo "Regenerating lock file for PyPI graphiti-core..." && \
|
||||
rm -f uv.lock && \
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ COPY pyproject.toml uv.lock ./
|
|||
# Install with BOTH neo4j and falkordb extras for maximum flexibility
|
||||
# and regenerate lock file to match the PyPI version
|
||||
RUN sed -i '/\[tool\.uv\.sources\]/,/graphiti-core/d' pyproject.toml && \
|
||||
sed -i "s/graphiti-core\[falkordb\]>=[0-9.]\+/graphiti-core[neo4j,falkordb]==${GRAPHITI_CORE_VERSION}/" pyproject.toml && \
|
||||
sed -i "s/graphiti-core\[falkordb\]>=[0-9]\+\.[0-9]\+\.[0-9]\+/graphiti-core[neo4j,falkordb]==${GRAPHITI_CORE_VERSION}/" pyproject.toml && \
|
||||
echo "Regenerating lock file for PyPI graphiti-core..." && \
|
||||
rm -f uv.lock && \
|
||||
uv lock
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue