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

Remove afero #613

Merged
merged 2 commits into from
May 30, 2018
Merged

Remove afero #613

merged 2 commits into from
May 30, 2018

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented May 28, 2018

This is the last bit of code using aero to juggle with implicit working directory.

Copy link
Contributor

@r2d4 r2d4 left a comment

Choose a reason for hiding this comment

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

LGTM, one comment about the working dir

@@ -66,25 +64,27 @@ func StrSliceContains(sl []string, s string) bool {

// ExpandPathsGlob expands paths according to filepath.Glob patterns
// Returns a list of unique files that match the glob patterns passed in.
func ExpandPathsGlob(paths []string) ([]string, error) {
func ExpandPathsGlob(workingDir string, paths []string) ([]string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this code just wrong before without the workingDir?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. It was using afero that implicitly sets a root dir

@dgageot dgageot merged commit 8c13026 into GoogleContainerTools:master May 30, 2018
@dgageot dgageot deleted the remove-afero branch June 6, 2018 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants