-
Notifications
You must be signed in to change notification settings - Fork 195
Upgrade to the latest Clojure patch version #484
Conversation
If this PR and #553 are both merged, we should switch |
@holyjak thanks for opening this PR. I'm still hoping Netlify will merge it, as I'm starting to run into problems building with their old version of Clojure. Would you mind updating the PR to use a more recent version of the Clojure CLI (1.10.3.855 as of posting this comment)? |
I'm giving this another +1. Because the version of Clojure that Netlify uses is outdated, I'm running into problems building with shadow-cljs, version 12.14.5. As of that version, internally shadow-cljs runs |
+1 on this, I am also blocked trying to deploy my ClojureScript SPA using shadow-cljs to build + Clojure CLI to manage dependencies |
@lilactown I've continued to have better luck compiling on Netlify using shadow-cljs version 2.14.4. Note:
This workaround doesn't negate the fact that Netlify's Clojure tooling is getting quite out of date. Maybe they're waiting for someone to write a build plugin for Clojure. 🤷 |
This bit me as well, and confused me a lot when I was trying to deploy an update to my small SPA documenting my shadow-cljs powered diagramming library for AsciiDoc. I found a creaky workaround, but it would be nicer if this just worked the way it should. |
Also caught out by this (thanks for opening the issue for others to see, would have taken me a while to figure out what was going on). |
Netlify does not cooperate, and it seems ShadowCLJS 2.14.4 is better supported, according to issue[1] and BountySource[2]. [1] netlify/build-image#484 [2] https://app.bountysource.com/issues/99499125-broken-builds-on-netlify
Closing this PR as the it's against xenial branch and the Xenial image is going to be deprecated: https://answers.netlify.com/t/please-read-end-of-support-for-xenial-build-image-everything-you-need-to-know/68239 With the Homebrew alpha support, it should be able to install this on demand. |
For those who have been watching this Issue, I wanted to follow up with some details. I host several ClojureScript projects on Netlify. I use shadow-cljs to compile them. Shadow dropped support for very old versions of the I experimented with @kitop's suggestion—use Linux Homebrew to install a more modern version of In addition to a newer
Here are the files I had to add:
Finally I have an executable shell script file in my project. I use this script as the build command in my wget -q -T 1 -t 1 https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.16.1%2B1/OpenJDK11U-jdk_x64_linux_hotspot_11.0.16.1_1.tar.gz
# Optional; check integrity of download. Would be safer to download the sha256.txt
# file once, commit it to the repo, then run `sha256sum -c` with that on each build.
wget -O- -q -T 1 -t 1 https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.16.1%2B1/OpenJDK11U-jdk_x64_linux_hotspot_11.0.16.1_1.tar.gz.sha256.txt | sha256sum -c
tar xzf OpenJDK11U-jdk_x64_linux_hotspot_11.0.16.1_1.tar.gz
# shadow-cljs needs the jdk on the path. The easiest way to ensure that is to put
# this line in the script file that calls shadow-cljs.
export PATH=$PWD/jdk-11.0.16.1+1/bin:$PATH
java -version So far I'm happy with this solution.
If these steps don't work for you, I'll offer to help but since builds are all so unique, I probably won't have much to add. Otherwise, best of luck! |
See https://clojure.org/guides/getting_started#_installation_on_linux. See the changelog for Clojure and for tools.deps.
Upgrades to the latest tools.deps.alpha 0.9.821 (was 0.8.584), including support for directly executing clojure functions via
-X
.