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

Add parser and downloader factory for the upgrade case #427

Merged
merged 26 commits into from
Feb 14, 2024

Conversation

drevell
Copy link
Contributor

@drevell drevell commented Feb 13, 2024

When we're doing template upgrades, we'll have a canonical location and a location type, and we'll need a Downloader to get the new template contents. This code does just that: f(location_type, location) -> Downloader

We were inconsistently handling temp dirs:

 - In some places, errors were ignored when removing temp dirs
 - One temp dir was never actually used
 - There was a mishmash of styles
 - It was overly verbose
# Conflicts:
#	templates/common/templatesource/remote_git.go
# Conflicts:
#	templates/commands/goldentest/record.go
#	templates/commands/goldentest/verify.go
# Conflicts:
#	templates/commands/describe/describe.go
@drevell drevell requested a review from a team as a code owner February 13, 2024 00:19
@drevell drevell requested a review from yolocs February 13, 2024 00:19
@drevell drevell changed the title Drevell/canonical parser Add parser and downloader factory for the upgrade case Feb 13, 2024
@drevell drevell merged commit 23068d1 into main Feb 14, 2024
2 checks passed
@drevell drevell deleted the drevell/canonical-parser branch February 14, 2024 22:34
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.

3 participants