-
-
Notifications
You must be signed in to change notification settings - Fork 660
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
relative paths to exec.Cmd in test_suite.go #254
Comments
This has been opened a year ago and is still affecting developers that use symlinks (myself included). I second Tim's question. Can we change this? |
@onsi can you take a look? Thanks! |
Will try to take a look this week or next. Am trying to carve out a bit more time for Ginkgo this summer. As always, though, a PR would be appreciated. |
Hello @thockin @wasylkowski, Can you please provide some more info to better understand the issue? How can I reproduce it? Can you give an example? The problems appears when:
Thanks |
I'm working through the backlog of old Ginkgo issues - apologies as this issue is probably stale now. I'm adding this to the v2 backlog. |
I appreciate it's somewhat absurd that I've only just gotten around to this nearly five years later - however after a few attempts I haven't been able to reproduce it. I've made a symlink with a bunch of packages in it and can't get any invocation of |
in
testsuite.New()
ginkgo says:Later that Path field gets used to construct an exec.Cmd, as the Dir field. The problem (it seems) is that when that Dir is expanded, if your CWD has any symlinks in it, things go sideways. In our case, Path becomes
./../../../../../../other/stuff
, but then I get achdir: no such file or directory
and everything fails.Is there a reason for making this path be relative? I tried just writing the "cleaned and abs'ed" dir into that field instead, and all of our tests seem OK with it. Can we change this?
The text was updated successfully, but these errors were encountered: