-
Notifications
You must be signed in to change notification settings - Fork 65
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
Introduce afero to simplify FS operations #786
Introduce afero to simplify FS operations #786
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments. Overall, it looks good.
I don't know enough about afero to determine exactly how it's interacting with the underlying FS on a given system, but at the API level, the logic LGTM.
* Introduce afero in the artificts package * Redo the signature of artifacts.WriteFile to accept a reader instead of a string. Updates all locations of WriteFile * Rework a test that wasn't properly checking for failure in its BeforeEach This proves the concept. More work can be done to use afero in unit tests to make them simpler. Signed-off-by: Brad P. Crochet <brad@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acornett21, bcrochet, komish The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This proves the concept. More work can be done to use afero in unit tests to make them simpler.
Signed-off-by: Brad P. Crochet brad@redhat.com