Resolving paths from pom project produces wrong result

Description

When resolving a :git/url dependency with :deps/manifest om the resulting vector for aths is a list where the first entry consists of the sourceDirectory of the pom of the dependency. This path is nonexistent since the sourceDirectory is (most likely) relative to the dependency but it is made absolute in the current directory which is in the dependent project.

An example usage of coord-paths to make it more clear:

Here ${project.basedir}/src/main/java is the default value, when no sourceDirectory is specified in the pom.xml.
It is clear that that path, which finds it's way into the classpath, is not valid. If a (relative) path would be present in the pom.xml, the first entry of the list could be something like "/path/to/dependent/project/src/main/clojure" which might exist, but is not the path to the sources of the dependency.

Also note that the output of coord-paths is a seq and not a vector.

Environment

None

Activity

Alex Miller June 29, 2019 at 1:17 PM

Released in clj 1.10.1.458

Alex Miller June 28, 2019 at 6:50 PM

Resolved for next release.

Fixed

Details

Assignee

Reporter

Priority

Created September 23, 2018 at 3:50 PM
Updated June 29, 2019 at 1:17 PM
Resolved June 28, 2019 at 6:50 PM