clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
littleli 2019-11-05T21:30:22.003100Z

@seancorfield Thank you for reporting https://github.com/littleli/scoop-clojure/issues/2 The fix landed in master. You should be good to update.

seancorfield 2019-11-05T21:49:01.004800Z

@ales.najmann Do I take it from your comment that the scoop update clojure won't detect new versions and won't automatically perform updates, unless you manually update the manifest each time?

littleli 2019-11-05T21:53:38.005400Z

Yes. Scoop compares the version on your drive, with version from the git and if it detects new version it proceeds with update.

littleli 2019-11-05T21:55:42.005600Z

checkver which is a tool that scoop provides for 'admin' to check for newer version is not working very well or I don't understand how to use it properly. But manifest needs to be updated (by hand) anyway.

1
alexmiller 2019-11-05T22:04:43.006500Z

Is making this something the clj build can do?

littleli 2019-11-05T22:09:45.006700Z

It is an interesting question. Scoop is fairly simplistic, but it is still in charge of managing those manifests.

alexmiller 2019-11-05T22:11:24.008Z

Happy to add something to the process but don’t know what needs to be done

littleli 2019-11-05T22:14:03.008200Z

Let me think little bit, maybe I'll come with something.

littleli 2019-11-05T22:21:47.008400Z

(1) could be github releases, but it's probably solution to only single problem. problem with version checker. (2) brave idea: generate scoop-clojure manifest with every release.

seancorfield 2019-11-05T22:27:46.008600Z

If clj-for-windows decided to standardize on Scoop for packaging/deployment, (2) would be a natural result of that, yes?

seancorfield 2019-11-05T22:28:04.008800Z

(that's been the big open question around the PS script)

alexmiller 2019-11-05T22:29:04.009800Z

It doesn’t even have to be “standard”. We can make N things as easily as 1

alexmiller 2019-11-05T22:29:25.010400Z

If it’s just generating a file, give me the template

seancorfield 2019-11-05T22:31:24.010600Z

@ales.najmann That would be https://github.com/littleli/scoop-clojure/blob/master/clojure.json right? Don't know how you make the hash value tho'...

seancorfield 2019-11-05T22:31:45.010900Z

(and then that could be hosted on a clojure org GH repo)

alexmiller 2019-11-05T22:36:36.011500Z

We have a CDN for everything else already

alexmiller 2019-11-05T22:36:55.012Z

Is that hash the sha?

alexmiller 2019-11-05T22:37:47.013200Z

Or rather does it need to be some specific thing or just something unique?

littleli 2019-11-05T22:43:14.013400Z

it is sha256sum of the zipfile. I actually manually compute it with command:

shasum.cmd -a 256 -p .\clojure-tools-1.10.1.486.zip

littleli 2019-11-05T22:46:30.013600Z

There is basically how scoop checks for versions https://github.com/lukesampson/scoop/wiki/App-Manifest-Autoupdate#adding-autoupdate-to-a-manifest but it is not nice reading