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

kiss: git caching #261

Merged
merged 7 commits into from Aug 26, 2021
Merged

kiss: git caching #261

merged 7 commits into from Aug 26, 2021

Conversation

dylanaraps
Copy link
Member

@dylanaraps dylanaraps commented Aug 25, 2021

  1. If a repository does not exist in the sources cache it is initialized and then pulled down as shallowly as possible.
  2. If the source tracks latest commit or a specific branch/tag, the package manager will pull changes every build.
  3. If the source tracks a specific commit, the commit will be pulled once and every subsequent build will only do a checkout.

Bugs:

  • Does not handle cases where remote changes.
  • Git runs in checksum mode.

@dylanaraps dylanaraps mentioned this pull request Aug 25, 2021
@dylanaraps dylanaraps mentioned this pull request Aug 25, 2021
@dylanaraps dylanaraps merged commit 88b5989 into master Aug 26, 2021
@dylanaraps dylanaraps deleted the git_cache branch August 26, 2021 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant