-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Incorrect resolution of relative :local/root paths #207
Comments
@danskarda Thank you for your reporting! |
liquidz
added a commit
that referenced
this issue
Mar 18, 2023
liquidz
added a commit
that referenced
this issue
Mar 19, 2023
@danskarda Thanks for your advice! |
Hi @liquidz, I tested 2.2.1017 and it works in my project as expected. Thanks! |
Thanks for your confirmation! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Imagine you have the directory structure similar to Polylith:
projects/development/deps.edn
and there is another
deps.edn
incomponents/foobar
(relative too project root)you run antq from project root with parameters
:directory ["projects/development"]
then antq fails to find
component/foobar
directory.I did some debugging and found a place most likely responsible for the issue:
antq/src/antq/dep/clojure.clj
Line 83 in 9715ef8
Function
get-relative-path-by-current-working-directory
returnsprojects/development/..components/foobar
and notcomponents/foobar
as expected.I suspect the reason is custom concatenation of paths as strings. When I use
io/file
for standard filename concatenation,(str (io/file dir relative-path))
works fine (under Linux, I do not know about platforms with \ separators).The text was updated successfully, but these errors were encountered: