This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-14
Channels
- # announcements (31)
- # babashka (9)
- # beginners (4)
- # calva (67)
- # cider (6)
- # clj-yaml (10)
- # clojure (105)
- # clojure-austin (8)
- # clojure-bay-area (1)
- # clojure-europe (12)
- # clojure-germany (3)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (2)
- # clojurescript (5)
- # core-logic (4)
- # data-science (29)
- # datomic (6)
- # dev-tooling (5)
- # emacs (3)
- # hyperfiddle (22)
- # introduce-yourself (4)
- # lsp (8)
- # malli (10)
- # off-topic (8)
- # pathom (74)
- # polylith (39)
- # practicalli (1)
- # reitit (3)
- # shadow-cljs (2)
- # spacemacs (3)
- # squint (4)
- # tools-deps (4)
Clojure CLI https://clojure.org/releases/tools#v1.11.1.1386 is now available • No changes in the tool in this release, this is a new configuration to publish releases on https://github.com/clojure/brew-install • Brew formulae will now use that download location as the primary location, and the prior download archive as a mirror. • Linux and posix installation instructions at https://clojure.org/guides/install_clojure have been updated.
Some changes will be desirable on https://github.com/DeLaGuardo/setup-clojure and I've filed an https://github.com/DeLaGuardo/setup-clojure/issues/88 about those (but it will continue to work as is). If you have some other process for obtaining downloads, please note that the github urls will do redirects, so curl
needs the -L
flag to follow those redirects.
Is there a recommended place to get the tar.gz and sha for the download, I know I can get it here https://download.clojure.org/install/clojure-tools-1.11.1.1386.tar.gz but there is no way to list the files https://download.clojure.org/install/ using that url for example, I am not sure where I got the download url from originally or where it is listed ?
https://github.com/clojure/brew-install/releases/latest will always take you to the latest release files, but not sure if that's fully answering your question
maybe back up one more step to what you're trying to do (which os/installer, etc)
oh I update the packages on solus so need the download and link and changelog each time I get around to pushing an update
then yeah that's probably the best place to go each time
I usually just change the numbers in the link and calculate the sha locally which probably is not ideal in case I ever ended up with a bad copy of the binary
okay I will have to try and remember brew is for all platforms, thanks @U064X3EF3
Thanks for the update Alex. I've update the https://practical.li/clojure/install/clojure-cli/ to reflect these changes. Successfully updated using the Linux script on Ubuntu and Debian. Thanks again
@U064X3EF3 Thanks for this. I'll update deps.clj to download from this github releases as well. Would it be possible to add .sha256 files for each upload so they can be verified after download?
I'm doing this in my own Github releases library as well https://github.com/borkdude/gh-release-artifact/blob/4a9a74f0e50e897c45df8cc70684360eb30fce80/src/borkdude/gh_release_artifact/internal.clj#L211-L216 and it helps both myself and package creators for babashka, clj-kondo, to make stuff more robust. Example: https://github.com/babashka/babashka/releases/tag/v1.3.182
Another question: is it correct that the .zip
file has no version? It used to have one
Yes on the zip - the install used to copy it to a file without so I got rid of that
cc @U015879P2F8 on the above too, for #CFN4QDHPS msi
and perhaps @UBLU3FQRZ for clj-deps
Will take a look afternoon (CET). zip seems to don't have version in filename but has a version in the url path, so that's already good enough for me (I'll use .tar.gz anyway). Should not be difficult to use brew release location.
We have an update-clj.sh
script that downloads stable.properties
and uses the values in that file to decide what version to install, so I ended changing the curl
for that to
curl -L -O
and then the download/execute of the posix-install.sh
to:
curl -L -O
chmod +x posix-install.sh
./posix-install.sh --prefix .
Does that sound right @U064X3EF3? (it seems to work)It was previously
curl -O
and
curl -O
chmod +x posix-install-${version}.sh
./posix-install-${version}.sh --prefix .
Oh wait is that stable.properties right?
We are not currently publishing that on GitHub, so that should stay the same (but you may not need it)
Oh, you’re grabbing from the source, not the release, that’s fine
Yeah, I wondered what the best approach was since stable.properties
and devel.properties
are no long in the released stuff...
If you just want latest stable posix installer you can get that in one step now from the url posted at https://clojure.org/guides/install_clojure
https://github.com/clojure/brew-install/releases/latest/download/posix-install.sh
Our script lets us install either the stable
version or a prerelease, and uses stable.properties
to check whether the requested version is stable or not. If it isn't stable, you have to confirm that you really mean to install that version.
(so our use case isn't "latest")
Practicalli Clojure book -https://github.com/practicalli/clojure/releases/tag/2023-08-14 Updates since March 2023 with a continued focus on the Clojure REPL workflow examples and associated tooling