<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged windows</title>
<link>https://ask.clojure.org/index.php/tag/windows</link>
<description></description>
<item>
<title>Flummoxed trying to get a :local/root in :extra-deps to be recognized as on the classpath.</title>
<link>https://ask.clojure.org/index.php/12435/flummoxed-trying-local-root-extra-deps-recognized-classpath</link>
<description>&lt;p&gt;This is my first time working at a place with workstations and networks as restricted as this.&lt;/p&gt;
&lt;p&gt;I'm on a windows machine btw.&lt;/p&gt;
&lt;p&gt;I've managed to get Intellij and Cursive running and the particular project I'm trying to get running locally everything seems to work with the exception of being able to get the project to accept a :extra-deps that has a :local/root designation in an alias in its deps file.&lt;/p&gt;
&lt;p&gt;Whenever I try and run the repl using that alias the code throws a 'can't find on classpath' error for precisely the dependency found in the :local/root area. This issue is not present when using Cursive's code navigation when I do a ctrl+click on any of the refs tied to the namespace.&lt;/p&gt;
&lt;p&gt;I've attempted to run the repl through the powershell directly but that gives me other problems and my attempts to set up an ubuntu via WSL but that presents other problems I can't seem to resolve with the company's own dns.&lt;/p&gt;
&lt;p&gt;So presently the best option appears to be going through Intellij/Cursive but I just can't get passed this :local/root issue.&lt;/p&gt;
</description>
<category>Tools</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12435/flummoxed-trying-local-root-extra-deps-recognized-classpath</guid>
<pubDate>Wed, 07 Dec 2022 21:21:48 +0000</pubDate>
</item>
<item>
<title>command works on Linux but fails on Windows</title>
<link>https://ask.clojure.org/index.php/11424/command-works-on-linux-but-fails-on-windows</link>
<description>&lt;p&gt;No question--just providing feedback.  This command works on Linux but fails on Windows:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag &quot;v0.4.8&quot;}' :as new&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Here is the full error report:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;{:clojure.main/message&lt;br&gt;
 &quot;Execution error (ExceptionInfo) at clojure.tools.deps.alpha.extensions.git/coord-err (git.clj:45).\r\nLibrary io.github.seancorfield/deps-new has invalid tag: v0.4.8\r\n&quot;,&lt;br&gt;
 :clojure.main/triage&lt;br&gt;
 {:clojure.error/class clojure.lang.ExceptionInfo,&lt;br&gt;
  :clojure.error/line 45,&lt;br&gt;
  :clojure.error/cause&lt;br&gt;
  &quot;Library io.github.seancorfield/deps-new has invalid tag: v0.4.8&quot;,&lt;br&gt;
  :clojure.error/symbol&lt;br&gt;
  clojure.tools.deps.alpha.extensions.git/coord-err,&lt;br&gt;
  :clojure.error/source &quot;git.clj&quot;,&lt;br&gt;
  :clojure.error/phase :execution},&lt;br&gt;
 :clojure.main/trace&lt;br&gt;
 {:via&lt;br&gt;
  [{:type clojure.lang.ExceptionInfo,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:message
&quot;Library io.github.seancorfield/deps-new has invalid tag: v0.4.8&quot;,
:data
{:lib io.github.seancorfield/deps-new,
 :coord
 {:git/tag v0.4.8,
  :git/sha &quot;a059d98edcbe25d5fb5b17052b56ab31a8d4eeff&quot;}},
:at
[clojure.tools.deps.alpha.extensions.git$coord_err
 invokeStatic
 &quot;git.clj&quot;
 45]}],
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;  :trace&lt;br&gt;
  [[clojure.tools.deps.alpha.extensions.git$coord_err&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;invokeStatic
&quot;git.clj&quot;
45]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;   [clojure.tools.deps.alpha.extensions.git$coord_err&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;invoke
&quot;git.clj&quot;
43]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;   [clojure.tools.deps.alpha.extensions.git$eval1234$fn__1236&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;invoke
&quot;git.clj&quot;
66]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;   [clojure.lang.MultiFn invoke &quot;MultiFn.java&quot; 239]&lt;br&gt;
   [clojure.tools.tools.api$install invokeStatic &quot;api.clj&quot; 45]&lt;br&gt;
   [clojure.tools.tools.api$install invoke &quot;api.clj&quot; 20]&lt;br&gt;
   [clojure.lang.AFn applyToHelper &quot;AFn.java&quot; 154]&lt;br&gt;
   [clojure.lang.AFn applyTo &quot;AFn.java&quot; 144]&lt;br&gt;
   [clojure.lang.Var applyTo &quot;Var.java&quot; 705]&lt;br&gt;
   [clojure.core$apply invokeStatic &quot;core.clj&quot; 667]&lt;br&gt;
   [clojure.core$apply invoke &quot;core.clj&quot; 662]&lt;br&gt;
   [clojure.run.exec$exec invokeStatic &quot;exec.clj&quot; 48]&lt;br&gt;
   [clojure.run.exec$exec doInvoke &quot;exec.clj&quot; 39]&lt;br&gt;
   [clojure.lang.RestFn invoke &quot;RestFn.java&quot; 423]&lt;br&gt;
   [clojure.run.exec$_main$fn__205 invoke &quot;exec.clj&quot; 178]&lt;br&gt;
   [clojure.run.exec$_main invokeStatic &quot;exec.clj&quot; 174]&lt;br&gt;
   [clojure.run.exec$_main doInvoke &quot;exec.clj&quot; 139]&lt;br&gt;
   [clojure.lang.RestFn applyTo &quot;RestFn.java&quot; 137]&lt;br&gt;
   [clojure.lang.Var applyTo &quot;Var.java&quot; 705]&lt;br&gt;
   [clojure.core$apply invokeStatic &quot;core.clj&quot; 667]&lt;br&gt;
   [clojure.main$main_opt invokeStatic &quot;main.clj&quot; 514]&lt;br&gt;
   [clojure.main$main_opt invoke &quot;main.clj&quot; 510]&lt;br&gt;
   [clojure.main$main invokeStatic &quot;main.clj&quot; 664]&lt;br&gt;
   [clojure.main$main doInvoke &quot;main.clj&quot; 616]&lt;br&gt;
   [clojure.lang.RestFn applyTo &quot;RestFn.java&quot; 137]&lt;br&gt;
   [clojure.lang.Var applyTo &quot;Var.java&quot; 705]&lt;br&gt;
   [clojure.main main &quot;main.java&quot; 40]],&lt;br&gt;
  :cause&lt;br&gt;
  &quot;Library io.github.seancorfield/deps-new has invalid tag: v0.4.8&quot;,&lt;br&gt;
  :data&lt;br&gt;
  {:lib io.github.seancorfield/deps-new,&lt;br&gt;
   :coord&lt;br&gt;
   {:git/tag v0.4.8,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:git/sha &quot;a059d98edcbe25d5fb5b17052b56ab31a8d4eeff&quot;}}}}
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11424/command-works-on-linux-but-fails-on-windows</guid>
<pubDate>Tue, 28 Dec 2021 18:40:39 +0000</pubDate>
</item>
<item>
<title>ClojureScript 1.10.891 regression - compilation failure on Windows</title>
<link>https://ask.clojure.org/index.php/11254/clojurescript-891-regression-compilation-failure-windows</link>
<description>&lt;p&gt;Compiling with Leiningen &amp;amp; cljsbuild, using ClojureScript 1.10.891, on Windows, the compilation failed with following exception. &lt;/p&gt;
&lt;p&gt;This does not occur with the same project &amp;amp; source files and previous ClojureScript versions (e.g. 1.10.879), on the same environment (i.e. Windows). &lt;/p&gt;
&lt;p&gt;This appears to me to be related to the recent change in function analyze-goog-file and the conversion of resources to file-paths (on Windows).&lt;/p&gt;
&lt;p&gt;Exception:&lt;br&gt;
clojure.lang.ExceptionInfo: failed compiling file:target\cljsbuild-compiler-1\cljs\core.cljs {:file #object[java.io.File 0x57ac2910 &quot;target\\cljsbuild-compiler-1\\cljs\\core.cljs&quot;], :clojure.error/phase :compilation}&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    at cljs.compiler$compile_file$fn__4031.invoke(compiler.cljc:1765)
    at cljs.compiler$compile_file.invokeStatic(compiler.cljc:1725)
    at cljs.compiler$compile_file.invoke(compiler.cljc:1701)
    at cljs.closure$compile_file.invokeStatic(closure.clj:660)
    at cljs.closure$compile_file.invoke(closure.clj:638)
    at cljs.closure$fn__5527.invokeStatic(closure.clj:734)
    at cljs.closure$fn__5527.invoke(closure.clj:728)
    at cljs.closure$fn__5440$G__5433__5447.invoke(closure.clj:556)
    at cljs.closure$compile_from_jar.invokeStatic(closure.clj:707)
    at cljs.closure$compile_from_jar.invoke(closure.clj:697)
    at cljs.closure$fn__5531.invokeStatic(closure.clj:744)
    at cljs.closure$fn__5531.invoke(closure.clj:728)
    at cljs.closure$fn__5440$G__5433__5447.invoke(closure.clj:556)
    at cljs.closure$compile_sources$iter__5653__5657$fn__5658.invoke(closure.clj:1105)
    at clojure.lang.LazySeq.sval(LazySeq.java:42)
    at clojure.lang.LazySeq.seq(LazySeq.java:51)
    at clojure.lang.RT.seq(RT.java:535)
    at clojure.core$seq__5419.invokeStatic(core.clj:139)
    at clojure.core$dorun.invokeStatic(core.clj:3121)
    at clojure.core$doall.invokeStatic(core.clj:3136)
    at clojure.core$doall.invoke(core.clj:3136)
    at cljs.closure$compile_sources.invokeStatic(closure.clj:1101)
    at cljs.closure$compile_sources.invoke(closure.clj:1090)
    at cljs.closure$build.invokeStatic(closure.clj:3195)
    at cljs.closure$build.invoke(closure.clj:3099)
    at cljs.build.api$build.invokeStatic(api.clj:231)
    at cljs.build.api$build.invoke(api.clj:212)
    at cljs.build.api$build.invokeStatic(api.clj:218)
    at cljs.build.api$build.invoke(api.clj:212)
    at cljsbuild.compiler$compile_cljs$fn__709.invoke(compiler.clj:61)
    at cljsbuild.compiler$compile_cljs.invokeStatic(compiler.clj:60)
    at cljsbuild.compiler$compile_cljs.invoke(compiler.clj:48)
    at cljsbuild.compiler$run_compiler.invokeStatic(compiler.clj:168)
    at cljsbuild.compiler$run_compiler.invoke(compiler.clj:129)
    at user$eval838$iter__886__890$fn__891$fn__917.invoke(form-init2485741331243889614.clj:1)
    at user$eval838$iter__886__890$fn__891.invoke(form-init2485741331243889614.clj:1)
    at clojure.lang.LazySeq.sval(LazySeq.java:42)
    at clojure.lang.LazySeq.seq(LazySeq.java:51)
    at clojure.lang.RT.seq(RT.java:535)
    at clojure.core$seq__5419.invokeStatic(core.clj:139)
    at clojure.core$dorun.invokeStatic(core.clj:3121)
    at clojure.core$doall.invokeStatic(core.clj:3136)
    at clojure.core$doall.invoke(core.clj:3136)
    at user$eval838.invokeStatic(form-init2485741331243889614.clj:1)
    at user$eval838.invoke(form-init2485741331243889614.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:7181)
    at clojure.lang.Compiler.eval(Compiler.java:7171)
    at clojure.lang.Compiler.load(Compiler.java:7640)
    at clojure.lang.Compiler.loadFile(Compiler.java:7578)
    at clojure.main$load_script.invokeStatic(main.clj:475)
    at clojure.main$init_opt.invokeStatic(main.clj:477)
    at clojure.main$init_opt.invoke(main.clj:477)
    at clojure.main$initialize.invokeStatic(main.clj:508)
    at clojure.main$null_opt.invokeStatic(main.clj:542)
    at clojure.main$null_opt.invoke(main.clj:539)
    at clojure.main$main.invokeStatic(main.clj:664)
    at clojure.main$main.doInvoke(main.clj:616)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:40)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Caused by: clojure.lang.ExceptionInfo: null #:clojure.error{:source nil, :line nil, :column nil, :phase :compilation}&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    at cljs.analyzer$analyze.invokeStatic(analyzer.cljc:4269)
    at cljs.analyzer$analyze.invoke(analyzer.cljc:4255)
    at cljs.analyzer$analyze_file$fn__3008.invoke(analyzer.cljc:4773)
    at cljs.analyzer$analyze_file.invokeStatic(analyzer.cljc:4768)
    at cljs.analyzer$analyze_file.invoke(analyzer.cljc:4726)
    at cljs.analyzer$analyze_file.invokeStatic(analyzer.cljc:4740)
    at cljs.analyzer$analyze_file.invoke(analyzer.cljc:4726)
    at cljs.compiler$with_core_cljs.invokeStatic(compiler.cljc:1473)
    at cljs.compiler$with_core_cljs.invoke(compiler.cljc:1463)
    at cljs.compiler$compile_file_STAR_.invokeStatic(compiler.cljc:1652)
    at cljs.compiler$compile_file_STAR_.invoke(compiler.cljc:1645)
    at cljs.compiler$compile_file$fn__4031.invoke(compiler.cljc:1750)
    ... 59 more
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Caused by: clojure.lang.ExceptionInfo: Illegal char &amp;lt;:&amp;gt; at index 4: file:\C:\Users\n.m2\repository\org\clojure\google-closure-library\0.0-20210811-6da97fe1\google-closure-library-0.0-20210811-6da97fe1.jar!\goog\math\long.js in file file:/C:/Users/n/.m2/repository/org/clojure/clojurescript/1.10.891/clojurescript-1.10.891.jar!/cljs/core.cljs {:tag :cljs/analysis-error}&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    at cljs.analyzer$error.invokeStatic(analyzer.cljc:719)
    at cljs.analyzer$error.invoke(analyzer.cljc:715)
    ... 71 more
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Caused by: java.nio.file.InvalidPathException: Illegal char &amp;lt;:&amp;gt; at index 4: file:\C:\Users\n.m2\repository\org\clojure\google-closure-library\0.0-20210811-6da97fe1\google-closure-library-0.0-20210811-6da97fe1.jar!\goog\math\long.js&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
    at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
    at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
    at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
    at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
    at java.io.File.toPath(File.java:2271)
    at cljs.externs$resource__GT_source_file.invokeStatic(externs.clj:293)
    at cljs.externs$resource__GT_source_file.invoke(externs.clj:290)
    at cljs.externs$analyze_goog_file.invokeStatic(externs.clj:307)
    at cljs.externs$analyze_goog_file.invoke(externs.clj:297)
    at cljs.analyzer$analyze_deps.invokeStatic(analyzer.cljc:2640)
    at cljs.analyzer$analyze_deps.invoke(analyzer.cljc:2612)
    at cljs.analyzer$ns_side_effects.invokeStatic(analyzer.cljc:4131)
    at cljs.analyzer$ns_side_effects.invoke(analyzer.cljc:4126)
    at cljs.analyzer$analyze_STAR_$fn__2886.invoke(analyzer.cljc:4253)
    at clojure.lang.PersistentVector.reduce(PersistentVector.java:343)
    at clojure.core$reduce.invokeStatic(core.clj:6829)
    at clojure.core$reduce.invoke(core.clj:6812)
    at cljs.analyzer$analyze_STAR_.invokeStatic(analyzer.cljc:4253)
    at cljs.analyzer$analyze_STAR_.invoke(analyzer.cljc:4244)
    at cljs.analyzer$analyze.invokeStatic(analyzer.cljc:4272)
    ... 70 more
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>ClojureScript</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11254/clojurescript-891-regression-compilation-failure-windows</guid>
<pubDate>Sun, 07 Nov 2021 12:13:27 +0000</pubDate>
</item>
<item>
<title>How to get clj command line tool on Windows if clojure + lein already installed?</title>
<link>https://ask.clojure.org/index.php/11201/how-command-line-tool-windows-clojure-lein-already-installed</link>
<description>&lt;p&gt;I'm running on Windows (not WSL) and have already got a working clojure / lein install based on the instructions here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://dev.to/adasomg/10-life-changing-minutes-with-clojure-windows-3ofl&quot;&gt;https://dev.to/adasomg/10-life-changing-minutes-with-clojure-windows-3ofl&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now I want to start with clojurescript based on the tutorial at &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.learn-clojurescript.com&quot;&gt;https://www.learn-clojurescript.com&lt;/a&gt;.  It wants to use clj as a build tool for clojurescript and it points to the install instructions on the main site which ultimately point here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows&quot;&gt;https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But that procedure assumes you don't have clojure already installed, which I do.  Is there a way to get the clj tool standalone for windows?&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11201/how-command-line-tool-windows-clojure-lein-already-installed</guid>
<pubDate>Tue, 26 Oct 2021 18:43:03 +0000</pubDate>
</item>
<item>
<title>cannot run ClojureScript on Windows 10 at all</title>
<link>https://ask.clojure.org/index.php/10615/cannot-run-clojurescript-on-windows-10-at-all</link>
<description>&lt;p&gt;hi anyone:&lt;/p&gt;
&lt;p&gt;I tried to follow the instructions from the &quot;ClojureScript Quick Start&quot;, on Windows 10. I tried&lt;br&gt;
both the Ubuntu way in WSL and the powershell way. However, both failed. Ubuntu failed with:&lt;/p&gt;
&lt;p&gt;clj -M --main cljs.main --compile hello-world.core --repl&lt;br&gt;
Failed to launch a browser:&lt;/p&gt;
&lt;p&gt;No X11 DISPLAY variable was set, but this program performed an operation which requires it.&lt;br&gt;
You can instead launch a non-browser REPL (Node or Nashorn).&lt;br&gt;
You can disable automatic browser launch with this REPL option&lt;br&gt;
  :launch-browser false&lt;br&gt;
and you can specify the listen IP address with this REPL option&lt;br&gt;
  :host &quot;127.0.0.1&quot;&lt;br&gt;
Waiting for browser to connect to &lt;a rel=&quot;nofollow&quot; href=&quot;http://localhost:9000&quot;&gt;http://localhost:9000&lt;/a&gt; ...&lt;br&gt;
ClojureScript 1.10.758&lt;br&gt;
cljs.user=&amp;gt;&lt;/p&gt;
&lt;p&gt;---&amp;gt;&amp;gt;&amp;gt; then how can I open browser with the web? The REPL can type, but respond nothing. (ex: (+ 1 2) give me no feedback at all)&lt;/p&gt;
&lt;p&gt;The powershell way failed with:&lt;/p&gt;
&lt;p&gt;java -cp &quot;cljs.jar;src&quot; cljs.main --compile hello-world.core --repl&lt;br&gt;
ClojureScript 1.10.758&lt;br&gt;
cljs.user=&amp;gt;&lt;/p&gt;
&lt;p&gt;---&amp;gt;&amp;gt;&amp;gt; then it just hang there, cannot type anything. The localhost:9000 will open, but just keep rolling/waiting, console see no &quot;Hello World!&quot; either.&lt;/p&gt;
&lt;p&gt;Is there any way for me to start ClojureScript on Windows 10? docker way, docker in WSL way? any working way, please. Thanks!&lt;/p&gt;
</description>
<category>ClojureScript</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/10615/cannot-run-clojurescript-on-windows-10-at-all</guid>
<pubDate>Sun, 16 May 2021 23:28:10 +0000</pubDate>
</item>
<item>
<title>I have found a program written in Clojure on Github. I want to run it on windows, how do that please?</title>
<link>https://ask.clojure.org/index.php/10031/have-found-program-written-clojure-github-windows-that-please</link>
<description>&lt;p&gt;Hi, I have NO programming experience at all, so would appreciate any help.&lt;/p&gt;
&lt;p&gt;I downloaded a program written in Clojure from GitHub and want to run it on my Windows 10 laptop. It was in a zipped file and I unzipped it. The folder contains many elements, including  .iml and.clj files&lt;/p&gt;
&lt;p&gt;I obtained Clojure for windows via &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.org&quot;&gt;https://clojure.org&lt;/a&gt; and successfully installed it.&lt;/p&gt;
&lt;p&gt;I then tried to run the program via Windows power Shell but I can't get it to start. &lt;/p&gt;
&lt;p&gt;Any advice on this, please?&lt;/p&gt;
&lt;p&gt;Thank you. &lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/10031/have-found-program-written-clojure-github-windows-that-please</guid>
<pubDate>Mon, 11 Jan 2021 18:34:25 +0000</pubDate>
</item>
<item>
<title>Clojure cli on windows relies on MD5 which is not FIPS compliant</title>
<link>https://ask.clojure.org/index.php/9537/clojure-cli-on-windows-relies-on-md5-which-not-fips-compliant</link>
<description>&lt;p&gt;It looks like the default powershell module uses the MD5 crypto service provider to compute a hash for the cached classpath file (I think);&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function Get-StringHash(str)  {
    $md5  = new-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Under certain installations of Windows with &lt;a rel=&quot;nofollow&quot; href=&quot;https://techcommunity.microsoft.com/t5/microsoft-security-baselines/why-we-8217-re-not-recommending-8220-fips-mode-8221-anymore/ba-p/701037&quot;&gt;FIPS&lt;/a&gt; mandated (e.g. by the system admin), MD5 is simply disallowed and &lt;code&gt;clj&lt;/code&gt; will fail with an error regarding FIPS in this function.&lt;/p&gt;
&lt;p&gt;A simple alternative is to change to a compliant algorithm, e.g. SHA1, &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function Get-StringHash(str)  {
    $md5  = new-Object -TypeName System.Security.Cryptography.SHA1CryptoServiceProvider
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This should not have an effect on the operation of the clojure cli script, other than changing the actual hashed value of the classpath, which should be internally consistent with the script's prior runs.  Unless something depends on the exact MD5 hash of the cpcache (it doesn't look like it), this should be a quick fix for cases where FIPS is forced.&lt;/p&gt;
</description>
<category>Tools</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/9537/clojure-cli-on-windows-relies-on-md5-which-not-fips-compliant</guid>
<pubDate>Tue, 18 Aug 2020 04:39:13 +0000</pubDate>
</item>
<item>
<title>Why does -A not merge deps across multiple aliases in tools.deps?</title>
<link>https://ask.clojure.org/index.php/8820/why-does-not-merge-deps-across-multiple-aliases-in-tools-deps</link>
<description>&lt;p&gt;The &lt;a rel=&quot;nofollow&quot; href=&quot;http://clojure.org/reference/deps_and_cli&quot;&gt;deps reference&lt;/a&gt; says the -A option applies across all alias types. It also says if multiple -R alias maps are specified, they are merged. This to me implies that if only options available to -R are specified (like :extra-deps), then multiple -A maps will behave the same as multiple -R maps. &lt;/p&gt;
&lt;p&gt;Given the above, and two aliases with just :extra-deps specified, I expect the following to be equivalent:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;clojure -R:a:b -Spath
clojure -A:a:b -Spath
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, while -R generates a path with the deps of both :a and :b, the -A version only contains the deps of :b. &lt;/p&gt;
&lt;p&gt;Is this a bug or is the behaviour intentionally different? &lt;/p&gt;
&lt;p&gt;I tested this on the latest windows clojure 1.10.1.483&lt;/p&gt;
</description>
<category>Tools</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8820/why-does-not-merge-deps-across-multiple-aliases-in-tools-deps</guid>
<pubDate>Tue, 05 Nov 2019 03:38:08 +0000</pubDate>
</item>
<item>
<title>Powershell woes</title>
<link>https://ask.clojure.org/index.php/8243/powershell-woes</link>
<description>&lt;p&gt;I've been pretty vocal on Slack about the issues introduced by the Powershell Clojure CLI command line on Windows. Alex Miller asked that the issues be described, augmented with community feedback, and that possible solutions were presented in some kind of a decision table.&lt;/p&gt;
&lt;p&gt;While I'm not entirely certain that the format meets Alex Miller's requirements, here it goes :&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/cark/clojure-windows-cli-issues&quot;&gt;Clojure CLI issues&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this document, I present two possible solutions.&lt;br&gt;
- a binary wrapper around the Powershell script&lt;br&gt;
- a portable binary rewrite of the bash/Powershell script&lt;/p&gt;
&lt;p&gt;Both of these solutions require a fairly low coding effort, and I produced exploratory projects.&lt;br&gt;
- &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/cark/clojure-win-cli-wrap&quot;&gt;A Clojure Powershel CLI wrapper&lt;/a&gt;. Tested on Windows. &lt;br&gt;
- &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/cark/clojure-cli-portable&quot;&gt;A portable Clojure CLI rewrite &lt;/a&gt;. Tested on Windows and Linux, it demonstrates that a portable solution isn't too hard to come by.&lt;/p&gt;
&lt;p&gt;I hope to receive feedback on the issues presented, and those two projects.&lt;/p&gt;
&lt;p&gt;Related jira: &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/browse/TDEPS-136&quot;&gt;https://clojure.atlassian.net/browse/TDEPS-136&lt;/a&gt;&lt;/p&gt;
</description>
<category>tools.deps</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8243/powershell-woes</guid>
<pubDate>Sun, 28 Jul 2019 22:12:41 +0000</pubDate>
</item>
</channel>
</rss>