Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fs/git): add support for cloning target repository to the local filesystem #3102

Merged
merged 4 commits into from
May 22, 2024

Conversation

GeorgeMac
Copy link
Contributor

@GeorgeMac GeorgeMac commented May 21, 2024

This adds support for having the Git backend clone to local disk.
The motivation is to offload some of the memory pressure for large repositories onto disk.
This way memory doesn't have to scale in proportion to repository size, with the tradeoff that initial clone and fetch times may be increased due to I/O on local disk.

storage:
  type: git
  git:
    backend:
      type: filesytem
      path: /path/to/dir # optional: will create a tempdir in systems temp dir location otherwise

@GeorgeMac GeorgeMac requested a review from a team as a code owner May 21, 2024 14:40
…filesystem

Signed-off-by: George MacRorie <me@georgemac.com>
Signed-off-by: George MacRorie <me@georgemac.com>
@GeorgeMac GeorgeMac requested a review from markphelps May 21, 2024 16:09
internal/config/storage.go Outdated Show resolved Hide resolved
internal/config/storage.go Show resolved Hide resolved
Signed-off-by: George MacRorie <me@georgemac.com>
@GeorgeMac GeorgeMac requested a review from markphelps May 21, 2024 17:54
Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@markphelps markphelps added the needs docs Requires documentation updates label May 21, 2024
@GeorgeMac GeorgeMac enabled auto-merge May 22, 2024 12:04
@GeorgeMac GeorgeMac merged commit 85bb23a into main May 22, 2024
29 checks passed
@GeorgeMac GeorgeMac deleted the gm/git-filesystem-storage branch May 22, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs docs Requires documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants