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

Refactor git repository caching logic #1299

Merged
merged 22 commits into from
Feb 3, 2023
Merged

Conversation

YrrepNoj
Copy link
Contributor

@YrrepNoj YrrepNoj commented Jan 30, 2023

Description

MISC:

  • Added more error handling to our git functions (one more step in our path away from using fatal.

Fixes #1069

  • Fix a bug where cached repos HEADs were not getting updated when the upstream repo had new changes (we were fetching the changes but not updating the branch) so they were not getting deployed correctly

Fixes #1302

  • Fix bug where additional unwanted tags where getting fetched when we were updating the HEAD of repos in ~/.zarf-cache/repos

Fixes #1303

  • Change how we calculate the checksums of git repos
  • NOTE: This can be considered a breaking change...

@netlify
Copy link

netlify bot commented Jan 30, 2023

Deploy Preview for zarf-docs failed.

Name Link
🔨 Latest commit 0ef3ae4
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/63d80724a69cbe000859885f

@YrrepNoj YrrepNoj changed the title 1069 update repo cache Refactor git repository cashing logic Jan 31, 2023
@YrrepNoj YrrepNoj marked this pull request as ready for review January 31, 2023 20:36
@jeff-mccoy jeff-mccoy changed the title Refactor git repository cashing logic Refactor git repository caching logic Feb 1, 2023
Copy link
Contributor

@jeff-mccoy jeff-mccoy left a comment

Choose a reason for hiding this comment

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

probably need to make sure we're testing these different implementations.

@netlify
Copy link

netlify bot commented Feb 1, 2023

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 56151b6
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/63dcc5baf52fc50008a789aa

@jeff-mccoy jeff-mccoy enabled auto-merge (squash) February 3, 2023 08:30
@jeff-mccoy jeff-mccoy merged commit eb7806d into main Feb 3, 2023
@jeff-mccoy jeff-mccoy deleted the 1069-update-repo-cache branch February 3, 2023 08:51
Noxsios pushed a commit that referenced this pull request Mar 8, 2023
## Description

MISC:
- Added more error handling to our git functions (one more step in our
path away from using `fatal`.
---
Fixes #1069
- Fix a bug where cached repos HEADs were not getting updated when the
upstream repo had new changes (we were fetching the changes but not
updating the branch) so they were not getting deployed correctly
 ---
Fixes #1302
- Fix bug where additional unwanted tags where getting fetched when we
were updating the HEAD of repos in `~/.zarf-cache/repos`
---
Fixes #1303
- Change how we calculate the checksums of git repos
- NOTE: This can be considered a breaking change...
---

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants