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

client/drivers: Refactor to use Getter wrapper #381

Merged
merged 4 commits into from
Nov 5, 2015
Merged

Conversation

catsby
Copy link
Member

@catsby catsby commented Nov 3, 2015

Adds local getter package, a thin wrapper around hashicorp/go-getter that handles common tasks:

  • uses go-getter to grab artifacts
  • applies a checksum if supplied in the config
  • applies chmod to the downloaded file
  • standardizes on artifact_source for a configuration parameter. This is a backwards incompatible change, but for the better I think
  • reduces duplication, all the downloading is in one spot and the same for all drivers that use it

In the future, we can iterate on it to support tar/zip files without having to change each driver g

d.logger,
)
if err != nil {
d.logger.Printf("\n---\nDEBUG\n---\n error here: %s\n---\n", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove debug log?

Copy link
Member Author

Choose a reason for hiding this comment

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

😱

@dadgar
Copy link
Contributor

dadgar commented Nov 3, 2015

LGTM

catsby added a commit that referenced this pull request Nov 5, 2015
client/drivers: Refactor to use Getter wrapper
@catsby catsby merged commit af5eec1 into master Nov 5, 2015
@catsby catsby deleted the f-getter-refactor branch November 5, 2015 19:47
@github-actions
Copy link

github-actions bot commented May 6, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants