-
Notifications
You must be signed in to change notification settings - Fork 352
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
Build scripts rely on $(cd ...; pwd) which doesn't work as expected in case of non-empty CDPATH #3359
Comments
@PawelLipski Could you try changing that line to
? If that works for you, I will commit that fix. |
(btw, as a quick workaround, just setting Yes, I did change this line... the problem is that:
|
I saw the occurrences in the annotation-tools and checker-framework-inference repositories, but I don't see other places in the checker-framework repository. Can you point out the places I missed? Thanks. |
Hmmm grep on CF repo shows the following:
although checker/bin-devel/test-*.sh files are likely symlinks anyway. |
So yes, the only "unclean" occurrences left are the two in .travis-build.sh (and it's just a message for user), and checker/bin-devel/test-cf-inference.sh. You're right, nothing else left in CF then. |
Great, thanks for confirming. That was my analysis too. |
Thanks for the bug report. I'm sorry you encountered this problem. We appreciate users finding the corner cases that we didn't think to test. :-) |
Haha no problem :) I actually wasn't aware of that Speaking of corner cases... I'd be grateful if you (or one of your colleagues) took a look at #3356... it's relatively simple, and likely leads to a quite high number of false negatives among CF&Lombok users. I believe that in most cases the affected users aren't even aware of this unsoundness :/ |
Setting
CDPATH
shell variable to anything non-empty (even if it's just one entry, likeCDPATH=.
) causescd
to output the path where it moved to, which in turn causes errors like this during./gradlew build
:Esp. see the
export 'AFU=...
line, here's where the output of bothcd
andpwd
has been assigned, and not just thepwd
's output.The text was updated successfully, but these errors were encountered: