-
Notifications
You must be signed in to change notification settings - Fork 842
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
Fix test 4270 #4402
Fix test 4270 #4402
Conversation
Without this change `stack repl` fails to load .o files when they come from a symbolic link
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.
Can you also include a changelog entry explaining the bug fix this is accomplishing?
7117686
to
1ea6bc5
Compare
Fixed, added changelog |
ChangeLog.md
Outdated
@@ -97,6 +97,8 @@ Bug fixes: | |||
[#4314](https://github.com/commercialhaskell/stack/pull/4314) | |||
* Add `--cabal-files` flag to `stack ide targets` command. | |||
* Don't download ghc when using `stack clean`. | |||
* Support loading in GHCi definitions from symlinked C files. See |
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.
* Support loading in GHCi definitions from symlinked C files. See | |
* Support loading in GHCi definitions from symlinked C files. Without this patch, Stack will try to find object files in the directory pointed to by symlinks, while GCC will produce the object files in the original directory. See |
return $ if exists then [p] else [] | ||
resolveCandidate dir = fmap maybeToList . resolveDirFile dir | ||
|
||
resolveDirFile |
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.
Please add a comment explaining that symlinks will not be followed.
Anything else here? |
Good to merge after CI runs |
Please include the following checklist in your PR:
This is a fix for a test
4270-files-order
, the main point of it is in af36e04 other commits improve Stack integration tests a bit.Integration tests succeed locally.