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

onejar execution can't find pack on classpath #132

Open
pwhittin opened this issue Mar 24, 2021 · 2 comments
Open

onejar execution can't find pack on classpath #132

pwhittin opened this issue Mar 24, 2021 · 2 comments
Assignees

Comments

@pwhittin
Copy link

From within an application directory, executing the following command:

../bin/onejar -A:prod project.jar

results in the following output:

WARNING: When invoking clojure.main, use -M                     
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).                                                     
Could not locate mach/pack/alpha/one_jar__init.class, mach/pack/alpha/one_jar.clj or mach/pack/alpha/one_jar.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.

It seems the like clojure (Clojure CLI version 1.10.3.814) is not downloading the dependencies correctly.

The problem can be resolved by executing the following command:

clojure -Sdeps '{:deps {pack/pack.alpha {:git/url "https://github.com/juxt/pack.alpha.git" :sha "73552d02e43fa7fac4e3f245257742a9534ea0f2"}}}' -Spath

which causes the dependencies to be downloaded.

@SevereOverfl0w SevereOverfl0w self-assigned this Mar 25, 2021
@SevereOverfl0w
Copy link
Contributor

I could repro this immediately after I updated, but now I cannot. I've tried downgrading & re-upgrading and still cannot reproduce.

I suspect this is a bug in clojure cli as you mentioned.

@pwhittin
Copy link
Author

I believe something like "rm -rf ~/.m2" might allow reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants