Skip to content

Download the project instead of cloning with git #52

Open
@sacha-c

Description

@sacha-c

Is your feature request related to a problem? Please describe.
Clone repositories with other methods than regular git cloning.

Reason is that cloning with git (even with --depth=1 downloads git files which can be very sizeable.
The only thing sheriff really needs though are package files & lockfiles, so I think we can make this more efficient.

Describe the solution you'd like
Some options:

  • use some git clone magic to filter only the files we want: something along the lines of git clone --filter=package.json|yarn.lock|package-lock.json|poetry.loc ?
  • download the repository as an archive, and then unzip it. In this way the .git folder is never downloaded

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions