-
Notifications
You must be signed in to change notification settings - Fork 13
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
Move windows matcher logic so all platforms can use #22
Conversation
39f21d0
to
4dce1e7
Compare
And now with CI passing! 🎉 |
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.
A few questions that are probably comments on preexisting/moved code, but you've highlighted them again by moving so I've reviewed them 😅🙈😇
} | ||
} | ||
|
||
func winRevision(v string) int { |
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.
Is this an implementation of a subset of the previous function? As is, this might return a value successfully where the above might return something empty, right? (That's kind of surprising behavior and might lead to subtle bugs; maybe it should just call the above function?)
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.
It is different in that given a string like x.y.z.N
it returns N
where as the other function only looks at x.y.z
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.
My worry here is that the other function returns the zero value but this one returns a number (foo.bar.baz.123), but I guess this one isn't really used in complete isolation because that last number is only meaningful if you know the other three are the same in the two values you're comparing.
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.
Yes, and is only used in the Less
function.
4dce1e7
to
638b515
Compare
638b515
to
c2347f9
Compare
There shouldn't be any need to make the platform matcher stuff for Windows to only be available on Windows since none of it is dependent on the machine running it. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
c2347f9
to
7c58292
Compare
There shouldn't be any need to make the platform matcher stuff for Windows to only be available on Windows since none of it is dependent on the machine running it.
Related to moby/buildkit#5614