Skip to content

Commit 1238c48

Browse files
committed
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
1 parent da87e6a commit 1238c48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

metagpt/actions/project_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def _merge(self, system_design_doc, task_doc, schema=CONFIG.prompt_schema)
100100
@staticmethod
101101
async def _update_requirements(doc):
102102
m = json.loads(doc.content)
103-
packages = set(m.get("Required Python third-party packages", set()))
103+
packages = set(m.get("Required Python packages", set()))
104104
file_repo = CONFIG.git_repo.new_file_repository()
105105
requirement_doc = await file_repo.get(filename=PACKAGE_REQUIREMENTS_FILENAME)
106106
if not requirement_doc:

0 commit comments

Comments
 (0)