-
Notifications
You must be signed in to change notification settings - Fork 8
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
Comparison of target path and configuration directory on WIN32 #2
Comments
Thanks for the bug report and the detailed analysis 👍 A fix will need some time, as I'm currently quite busy. |
I will provide a fix cause the suggested solution has issues with clean/incremental build cause "realpath" of the target behaves different if symbolic link exists or not.
|
Thanks for supporting here 👍 To be honest, this project does not have any tests or a CI configured. So the PR can contain the bug fix only. No tests yet... |
In file collections/collections.py the target directory and conf directory are compared to evaluate if the link is created in the right directory. This fails on windows due to comparing configured python paths with os.path.realpath ones.
Assume you must also compare with the os.path.realpath of the target in Line 94:
if not target.startswith(os.path.realpath(app.confdir)): raise CollectionsException( 'Target path is not part of documentation folder\n'
if not os.path.realpath(target).startswith(os.path.realpath(app.confdir)): raise CollectionsException( 'Target path is not part of documentation folder\n'
The text was updated successfully, but these errors were encountered: