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

Embedding META-INF/bb.edn with :deps results in: Cannot run program "java" #1668

Open
arichiardi opened this issue Feb 7, 2024 · 0 comments

Comments

@arichiardi
Copy link
Contributor

version
v1.3.186

platform
linux

problem

I included bb.edn into a jar at META-INF/bb.edn and then I ran a --main. I got:

Clojure tools not yet in expected location: /home/app/.deps.clj/1.11.1.1435/ClojureTools/clojure-tools-1.11.1.1435.jarDownloading https://github.com/clojure/brew-install/releases/download/1.11.1.1435/clojure-tools.zip to /home/app/.deps.clj/1.11.1.1435/ClojureTools/clojure-tools.zip
Unzipping /home/app/.deps.clj/1.11.1.1435/ClojureTools/clojure-tools.zip ...
Successfully installed clojure tools!Exception in thread "main" java.io.IOException: Cannot run program "/usr/lib/jvm/java-11-openjdk-11.0.22.0.7-2.el8.x86_64/bin/java" (in directory "jar:file:/app/upgrade-scripts/cardiodi-scripting.jar!/META-INF"): error=2, No such file or directory
	at java.base@21.0.1/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
	at java.base@21.0.1/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
	at babashka.process$process_STAR_.invokeStatic(process.cljc:367)
	at babashka.process$shell.invokeStatic(process.cljc:648)
	at babashka.impl.deps$add_deps$fn__27336.invoke(deps.clj:100)
	at borkdude.deps$_main.invokeStatic(deps.clj:1052)
	at borkdude.deps$_main.doInvoke(deps.clj:882)

repro

https://github.com/arichiardi/babashka-repros

Check README.md

expected behavior

I'd expect this to either download the dependencies in :deps or at the very minimum not to fail.

@arichiardi arichiardi changed the title Embedding META-INF/bb.edn with :deps results in Cannot run program "/usr/lib/jvm/java-11-openjdk-11.0.22.0.7-2.el8.x86_64/bin/java" Embedding META-INF/bb.edn with :deps results in: Cannot run program "java" Feb 7, 2024
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

1 participant