mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Fix: requirements.txt was not written to the disk
While the Python packages requirements are correctly detected and saved into the json task file, requirements.txt was always empty. Since it was trying to get packages with the wrong key, packages were always empty when writing in requirements.txt
This commit is contained in:
parent
da87e6aa8c
commit
1238c48451
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class WriteTasks(Action):
|
|||
@staticmethod
|
||||
async def _update_requirements(doc):
|
||||
m = json.loads(doc.content)
|
||||
packages = set(m.get("Required Python third-party packages", set()))
|
||||
packages = set(m.get("Required Python packages", set()))
|
||||
file_repo = CONFIG.git_repo.new_file_repository()
|
||||
requirement_doc = await file_repo.get(filename=PACKAGE_REQUIREMENTS_FILENAME)
|
||||
if not requirement_doc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue