Skip to content
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

lein javac sometimes alters the :target-path, sometimes causing class resolution issues #2120

Open
djsweet opened this issue Mar 28, 2016 · 1 comment
Labels

Comments

@djsweet
Copy link

djsweet commented Mar 28, 2016

In cases where :target-path is defined with a "%s" parameter, lein javac alters the :target-path by appending "+xxxxxxxx", where "xxxxxxxx" is the first 8 characters of the SHA1 hash of the profile map (see line 446 in leiningen-core/src/leiningen/core/project.clj, I haven't been able to verify that the profile even gets merged properly when used this way). In some cases, the resulting :target-path being separate from the :target-path without lein javac causes class resolution issues (e.g., when writing an annotation processor that calls into Clojure, and applying it against the project still being compiled). Removing the "%s" from :target-path is a valid workaround.

I have a patch for this in my repo, but it's against #2112. I'll submit a separate PR after #2112 is looked at; if #2112 won't be merged, I can extract the patch and apply it against master for the new PR.

@hypirion
Copy link
Collaborator

Hmm, yeah, that's counterintuitive. Happy to take that patch, and you can assume #2112 will be merged in after I've reviewed it.

@technomancy technomancy added the bug label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants