-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Git version resolution for path-based dependency #1306
base: master
Are you sure you want to change the base?
Conversation
It is fairly legal in case of a git submodule that .git is a regular file. Git accepts this file in its --git-dir parameter in `git describe`. Thus rendering the isDir() check here being counter-effective.
Thanks for your pull request and interest in making D better, @llucenic! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. |
Please help me with the interpreting of failing checks. I do not understand what should be changed in order to pass them. |
Don't worry about Jenkins it used to be very unstable in the last few months thought this got better over the last weeks as we started to look into the failures more carefully. Anyhow, I'm sorry that this got lost in the queue. |
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.
This is harmless change anyhow - even if git_dir doesn't exist, the method will still return null
and with verbose logging an error message. Though of course there's the penalty of invoking git
I will write a unit test, but frankly I have no idea how it should look like in a change like this :-) |
Have a look at e.g. https://github.com/dlang/dub/blob/master/test/4-describe-data-1-list.sh Essentially you create a the layout that's needed to reproduce this in |
It is fairly legal in case of a git submodule that .git is a regular file. Git accepts this file in its --git-dir parameter in
git describe
. Thus rendering theisDir()
check indetermineVersionWithGIT(NativePath path)
being counter-effective.This PR partially fixes #1303.