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

Failure when :local/root in deps.edn is relative path #2109

Closed
rmoehn opened this issue Feb 7, 2019 · 2 comments
Closed

Failure when :local/root in deps.edn is relative path #2109

rmoehn opened this issue Feb 7, 2019 · 2 comments
Labels
bug Marks issues describing bugs released Marks issues which have had the fixes released in a stable build
Milestone

Comments

@rmoehn
Copy link

rmoehn commented Feb 7, 2019

I have this in my deps.edn file:

{:deps
 {com.datomic/datomic-free   {:local/root "datomic-free-0.9.5703/datomic-free-0.9.5703.jar"}
…}

When I try to run a REPL, it fails with this error message:

1 problem was encountered while building the effective model
[FATAL] Non-readable POM jar:file:datomic-free-0.9.5703/datomic-free-0.9.5703.jar!/META-INF/maven/com.datomic/datomic-free/pom.xml: datomic-free-0.9.5703/datomic-free-0.9.5703.jar (No such file or directory) @ 

When I run clj in the directory that contains deps.edn, the REPL starts without problem. When I turn the :local/root into an absolute path (/Users/erle/O/jursey-deps/datomic-free-0.9.5703/datomic-free-0.9.5703.jar), the REPL starts in Cursive as well. So I assume that the working directory is not right. (System/getProperty "user.dir") returns /Users/erle/O/jursey-deps, which is correct, though.

My run configuration looks like this:

image

@cursive-ide cursive-ide added this to the 1.8.1 milestone Feb 7, 2019
@cursive-ide
Copy link
Owner

Yes, Cursive does some black magic to correct the CWD, since it calls into tools.deps.alpha at some points from within Cursive itself, which normally has the CWD set to within its bin directory somewhere. But it looks like that value gets passed directly to the Maven resolver, which I can't hook. I've fixed this by manually absolutising it before calling into deps.

@rmoehn
Copy link
Author

rmoehn commented Feb 8, 2019

Thanks!

@cursive-ide cursive-ide modified the milestones: 1.8.1, 1.8.1-eap3 Feb 20, 2019
@cursive-ide cursive-ide added the bug Marks issues describing bugs label Sep 22, 2020
@cursive-ide cursive-ide added the released Marks issues which have had the fixes released in a stable build label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Marks issues describing bugs released Marks issues which have had the fixes released in a stable build
Projects
None yet
Development

No branches or pull requests

2 participants