You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Due to how lockfiles are implemented we use their name and create a source from it:
classTracker:
# this would also be adjusted further
...
def_get_lockfile(self, root, file):
file_path=path.join(root, file)
rel_file_path=path.relpath(file_path, self.local_path)
withopen(file_path, "r") asfile_content:
return {"name": rel_file_path, "data": file_content.read()} # e.g. {"name": "./api/poetry.lock", "data": "..."}@propertydeflockfiles(self):
ifnotself.has_local_copy:
raiseRepoDoesNotExist(
f"Unable to retrieve lockfiles for {self.project.repo} because it is not saved locally."
)
lockfile_list= []
forroot, _, filesinwalk(self.local_path):
if".git"inroot:
continuelockfile_list.extend([self._get_lockfile(root, file) forfileinfiles])
returnlockfile_list
...
Adjust Parser to set versions on sources instead of versioned_dependencies on the project
Goal
Implementation
DependencySourceversioned_dependenciesormaintainersDependencySourcehasversionswhich is an m2m forVersionsourcefield that replaces the project fieldlockfilesare implemented we use their name and create a source from it:versionson sources instead ofversioned_dependencieson the projectFurther implementation