Skip to content

FR: clone packages repo in shallow mode (--depths=1) #161

@ZoomRmc

Description

@ZoomRmc

elif ShallowClones in context().flags: "--depth=1"

let res = clone(parseUri "https://github.com/nim-lang/packages", pkgsDir)

Currently the clone operation is global-configured to use shallow cloning. Atlas needs to pass this option to clone directly or ignore it when cloning the packages repo. In my setup shallow cloning packages brings it down to 1,1M from 5,4M. Considering this is for each project, this is pretty significant.

BTW, is there a reason to keep separate packages clone for each deps directory and not use a global one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions