-
Notifications
You must be signed in to change notification settings - Fork 654
Feature/659 fix ip should not be matched as versions #661
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
Feature/659 fix ip should not be matched as versions #661
Conversation
- Added negative lookbehind to filter out version string prefixed with '://' like 'file|http[s]://' etc.
I recently ran into this same issue on a repository at work, so I would be keen to get this merged in. @JakeGinnivan what are your thoughts? The timeout issue that @mkoertgen mentioned here: #659 (comment) concerns me a little bit. |
I've never seen it timeout, but the logs have timing info in them, so should be easy to spot what I'd taking the time. Other than that, pr looks good. Sent from my Windows Phone From: Gary Ewan Parkmailto:[email protected] I recently ran into this same issue on a repository at work, so I would be keen to get this merged in. @JakeGinnivanhttps://github.com/JakeGinnivan what are your thoughts? The timeout issue that @mkoertgenhttps://github.com/mkoertgen mentioned here: #659 (comment)#659 (comment) concerns me a little bit. — |
@mkoertgen can you provide the logs for a GitVersion run where there is a timeout? |
Sorry, i did not mean to mention a timeout, just timing infos with In fact, i do not believe the adjusted RegExp to become a bottleneck. However, i have not much experience with timing in GitVersion. For my issue #659 gitversion looked about 330 commits back for the ip message. And it took about 0.17 seconds. So right now performance seems to be quite good. I did not check timing again with the fix included, though. I think, the PR can be merged in. If someone gets a performance a hit i'll take care of it. word! |
…t_be_matched_as_versions Feature/659 fix ip should not be matched as versions
This will not be a performance bottleneck in comparison to other things. Negative lookbehinds can be slow, but the strings we have are small and compared to some of the git operations we do, it will be negligible. |
👍 I will try to give the new version a try this morning on the repo that was giving me problems, and will report back as well |
👍 this is now working on the internal repo that was exhibiting the same behaviour 😸 |
Fixes #659