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.
From within an application directory, executing the following command:
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"}}}' -Spathwhich causes the dependencies to be downloaded.