Building the Metabase Uberjar failed on Tag v045.2.1

OS and version

Darwin bogon 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64

Git branch and commit

HEAD detached at v0.45.2.1 commit 1a59de70ee035a7ff1e8c6d3ab340a372542d4ae

Java version and architecture

openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment Homebrew (build 11.0.18+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.18+0, mixed mode)

Java variable configuration

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home

Java path configuration

echo $PATH | grep --color=never -oe "/usr/lib/jvm/[^:]*"

Lein version

Leiningen 2.9.5 on Java 11.0.18 OpenJDK 64-Bit Server VM

NodeJS version

$ node -v
v16.16.0

Yarn version

$ yarn --version
1.22.10

Clojure version

$ clojure --help | grep Version
Version: 1.10.3.1020

Focus Error

#Detail Error








Hi, we’re not using lein anymore, you should be good to go with the latest version of clojure and clojure cli. If you can’t make it work, I suggest you use the Dockerfile in the root of the project that has all the needed dependencies

I'm unable to find that commit you referenced:

HEAD detached at v0.45.2.1 commit 1a59de70ee035a7ff1e8c6d3ab340a372542d4ae

❯ git show 1a59de70ee035a7ff1e8c6d3ab340a372542d4ae
fatal: bad object 1a59de70ee035a7ff1e8c6d3ab340a372542d4ae

However, your stack trace indicates what is going on. The Clojure compiler is not recognizing the function update-vals. This function was added in 1.11. I checked out v0.45.0 to grab a version before yours since I cannot find your exact sha and I see we had specified clojure 1.11.1 already at that point.

I suspect this is a bug in your older version of the Clojure CLI 1.10.3.1020.
I'm on

❯ clojure --version
Clojure CLI version 1.11.1.1208

You should update to the latest release and try with that. It's possible your specific version isn't picking up the specified Clojure version from the project. I'm surprised it isn't seeing the correct version of Clojure but I believe updating this should fix it for you.

The project is successfully packaged after Clojure version upgrade.
Thank you for your help!

$ clojure --help | grep Version
Version: 1.11.1.1224

Thanks, the project is successfully packaged after Clojure version upgrade.


This is the commit given by Git repository.

Why?

Hello, I am a newcomer to metabase and encountered an issue while packaging the jar after development. The command to use is as follows:

{13:31}~/Downloads/metabase master: master ✗➭ lein uberjar

Couldn't find project.clj, which is needed for uberja

Or it could be

{13:33}~/Downloads/metabase master: master ✗➭ clojure - T: build uberjar: edit: ee

Unqualified function can't be resolved: uberjar

This makes me quite puzzled. How can I obtain the jar package? Most of the tutorials on the internet have lost their practicality, and they are still stuck in the past year. If you are still using them, you are very lucky to hope to get some help by asking for your advice

why are you buiding such an old version? it's no longer supported, build 49.1 if possible