-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Adopt afero, create tests for globby. #1090
Conversation
@nathanhammond is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
The Windows CI failure is legitimately failing because of path separator differences. I expected them to be normalized and they ... weren't. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
I'm super excited for this. I think this will be a major upgrade for the codebase.
7d65b5b
to
9878749
Compare
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.
One extra idiomatic Go thing, which I apologize for not catching earlier: you almost always want to use foo := thing
instead of var foo = thing
. The style guide covers it here
And actually, having now read that section, I suspect I am not 100% following it, specifically the piece about using var
for empty slices. I'm not 100% sold on their argument, but if we're going to try to follow the guide, I guess we ought to move in that direction going forward.
Happy to have a good shared rant about Go sometime in an unrecorded medium.
600c15e
to
cf2e378
Compare
I went back and addressed all the style guide issues I introduced here. |
This PR does three things:
afero
inside of theglobby
module. This is a nice isolated test ofafero
, which we can expand into the rest of the codebase if we remain happy with it.globby
implementation in order to attempt to specify the behavior prior to rewriting the implementation ofGlobFiles
.os.Getwd
in one call toGlobFiles
.I've added a review for questions.