-
-
Notifications
You must be signed in to change notification settings - Fork 184
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] Fix the list if symlink is in the same directory #174
[fix] Fix the list if symlink is in the same directory #174
Conversation
Thank you! This is an acceptable change. However, I think it is better to store whether it is a symlink or not into variable such as How do you think? |
Thank you for your advice. I was also worried about it. I thought it would be difficult to understand if I increased the new variables, so I chose commonizing But the following morning, I thought it was unnecessary commonality. And the return location is in the middle of the I find it easier to use I'll fix it. |
Oh..
I don't think it has anything to do with this correction. |
This error is due to the problem that errors.Printer etc. was reverted by the following change, but xerrors haven't followed up with it yet. Since ghq is a tool, not a library, there is no need to keep track of the HEAD of the Go language development. |
Adjusted on my side and merged. I'm grad for your contribution. It is a good job, test code is also sufficient. Thank you! |
## [v0.12.3](v0.12.2...v0.12.3) (2019-05-16) * [fix] Ignore files which seems to system hidden file in walking [#176](#176) ([Songmu](https://github.com/Songmu)) * [fix] Fix the list if symlink is in the same directory [#174](#174) ([at-grandpa](https://github.com/at-grandpa)) * [refactoring] introduce Songmu/gitconfig [#175](#175) ([Songmu](https://github.com/Songmu)) * [refactoring] Get ghq.completeUser strictly as a boolean value [#172](#172) ([Songmu](https://github.com/Songmu))
@Songmu Thank you! I'm glad I could contribute. |
Fix the list if symlink is in the same directory.
test dir
ghq root
test
before (latest version)
main_dir/z_dir
is not found.after (this PR version)
setup.
ghq list
.main_dir/z_dir
is found.Why?
If
filepath.Walk
returnsfilepath.SkipDir
at symlink time, it will not reference subsequent files in the same directory. Therefore, it was not output to the list. So I have decided not to returnfilepath.SkipDir
for symlinks.