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
c0rydoras opened this issue
Aug 14, 2023
· 0 comments
· May be fixed by #299
Assignees
Labels
backendThis issue or pull request is backend relatedbreakingThis issue or pull request discusses something breakingfeatureThis issue or pull request discusses a feature
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
The text was updated successfully, but these errors were encountered:
c0rydoras
added
backend
This issue or pull request is backend related
feature
This issue or pull request discusses a feature
breaking
This issue or pull request discusses something breaking
labels
Aug 14, 2023
backendThis issue or pull request is backend relatedbreakingThis issue or pull request discusses something breakingfeatureThis issue or pull request discusses a feature
Goal
Implementation
DependencySource
versioned_dependencies
ormaintainers
DependencySource
hasversions
which is an m2m forVersion
source
field that replaces the project fieldlockfiles
are implemented we use their name and create a source from it:versions
on sources instead ofversioned_dependencies
on the projectFurther implementation
The text was updated successfully, but these errors were encountered: