Fork me on GitHub
#announcements
<
2023-08-14
>
Alex Miller (Clojure team)07:08:12

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.

👍 24
👏 2
gratitude-thank-you 4
🎉 4
Alex Miller (Clojure team)07:08:37

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.

oly08:08:06

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 ?

Alex Miller (Clojure team)08:08:58

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

Alex Miller (Clojure team)08:08:03

maybe back up one more step to what you're trying to do (which os/installer, etc)

oly08:08:18

Yeah i just found it, I think because it named brew it always throws me, thanks

oly08:08:53

oh I update the packages on solus so need the download and link and changelog each time I get around to pushing an update

Alex Miller (Clojure team)08:08:01

then yeah that's probably the best place to go each time

oly08:08:02

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

oly08:08:49

okay I will have to try and remember brew is for all platforms, thanks @U064X3EF3

practicalli-johnny09:08:01

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

👍 2
borkdude12:08:46

@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?

borkdude12:08:07

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

borkdude12:08:33

Another question: is it correct that the .zip file has no version? It used to have one

Alex Miller (Clojure team)12:08:34

Yes, I can add the sha file

🙏 2
Alex Miller (Clojure team)12:08:43

Yes on the zip - the install used to copy it to a file without so I got rid of that

👍 2
borkdude12:08:48

cc @U015879P2F8 on the above too, for #CFN4QDHPS msi

borkdude12:08:13

and perhaps @UBLU3FQRZ for clj-deps

littleli13:08:45

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.

seancorfield16:08:59

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)

seancorfield16:08:28

It was previously

curl -O 
and
curl -O 
chmod +x posix-install-${version}.sh
./posix-install-${version}.sh --prefix .

Alex Miller (Clojure team)16:08:23

Oh wait is that stable.properties right?

Alex Miller (Clojure team)17:08:39

We are not currently publishing that on GitHub, so that should stay the same (but you may not need it)

Alex Miller (Clojure team)17:08:24

Oh, you’re grabbing from the source, not the release, that’s fine

seancorfield17:08:00

Yeah, I wondered what the best approach was since stable.properties and devel.properties are no long in the released stuff...

Alex Miller (Clojure team)17:08:16

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

seancorfield17:08:12

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.

seancorfield17:08:05

(so our use case isn't "latest")

practicalli-johnny12:08:46

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

👍 20
👀 10
🎉 18
❤️ 2