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

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

Yarn version

$ yarn --version

Clojure version

$ clojure --help | grep Version

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
I'm on

❯ clojure --version
Clojure CLI version

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

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

This is the commit given by Git repository.