Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore(deps): bump Agent filelock to 4.2.1 (#44793)

Yunlu Wen45e427984988
diff --git a/dify-agent/pyproject.toml b/dify-agent/pyproject.toml
index dbd899059fc..08f089db2b4 100644
--- a/dify-agent/pyproject.toml
+++ b/dify-agent/pyproject.toml
@@ -65,6 +65,12 @@ line-length = 120
target-version = "py312"
include = ["src/**/*.py", "examples/**/*.py", "tests/**/*.py", "docs/**/*.py"]
+[tool.uv]
+# unstructured caps filelock<4; Agent FileLock/WeakFileLock compatibility was verified with 4.2.1.
+# Override the stale upper bound to take the required security fixes.
+# TODO: Remove this override once unstructured permits filelock>=4.2.1.
+override-dependencies = ["filelock==4.2.1"]
+
[dependency-groups]
dev = [
"fakeredis[lua]>=2.31.0",
diff --git a/dify-agent/uv.lock b/dify-agent/uv.lock
index 055d6e4d2ca..aff116e0752 100644
--- a/dify-agent/uv.lock
+++ b/dify-agent/uv.lock
@@ -10,6 +10,9 @@ resolution-markers = [
"python_full_version < '3.14' and sys_platform != 'emscripten' and sys_platform != 'win32'",
]
+[manifest]
+overrides = [{ name = "filelock", specifier = "==4.2.1" }]
+
[[package]]
name = "aiofiles"
version = "25.1.0"
@@ -732,11 +735,11 @@ wheels = [
[[package]]
name = "filelock"
-version = "3.29.0"
+version = "4.2.1"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/b5/fe/997687a931ab51049acce6fa1f23e8f01216374ea81374ddee763c493db5/filelock-3.29.0.tar.gz", hash = "sha256:69974355e960702e789734cb4871f884ea6fe50bd8404051a3530bc07809cf90", size = 57571, upload-time = "2026-04-19T15:39:10.068Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/d5/98/771d8ca889f220d7d7e352addf500666368f0fd081c6080a83767580c6e4/filelock-4.2.1.tar.gz", hash = "sha256:c4c937ccac2a813cee448e662a56366cfb374c0f8702e75f295c412cc1c5d5a3", size = 650997, upload-time = "2026-10-17T16:48:14.435Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/81/47/dd9a212ef6e343a6857485ffe25bba537304f1913bdbed446a23f7f592e1/filelock-3.29.0-py3-none-any.whl", hash = "sha256:96f5f6344709aa1572bbf631c640e4ebeeb519e08da902c39a001882f30ac258", size = 39812, upload-time = "2026-04-19T15:39:08.752Z" },
+ { url = "https://files.pythonhosted.org/packages/28/00/db89d339bc4ecdc8087fa7b8607ba22ffc27bf96286f340c9620bea428b3/filelock-4.2.1-py3-none-any.whl", hash = "sha256:7be2662e9e826b9bba28afc0f843a123280d799a2ea44bb5d35ccec67905ae44", size = 162455, upload-time = "2026-10-17T16:48:12.937Z" },
]
[[package]]