Closed skynet-gh closed 2 years ago
@skynet-gh Thanks for your reporting!
Unfortunately I don't have Windiows environment, so I can't reproduce the problem.
Could you tell me actual values for file-path
and (u.env/getenv "HOME")
in the following code?
E.g.
(defn normalize-path
[file-path]
(println (format "DEBUG: file-path = '%s', home = '%s'"
file-path
(u.env/getenv "HOME")))
(str/replace file-path (u.env/getenv "HOME") "~"))
@liquidz in my local clone with that change to normalize-path
I get:
> clj -M:outdated
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
DEBUG: file-path = '.\deps.edn', home = 'null'###### ] 23/23
Execution error (IllegalArgumentException) at antq.util.file/normalize-path (file.clj:15).
Invalid match arg:
Full report at:
...
so looks like file-path
is ".\deps.edn"
and (u.env/getenv "HOME")
is null
.
@skynet-gh Sorry for late response. I've tried to fix the problem in dev branch.
Could you try dev branch?
@liquidz hey thanks, that seems to work just fine:
antq> clj -M:outdated
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ ################################################## ] 23/23
| :file | :name | :current | :latest |
|------------+------------------------------+-----------+-----------|
| .\deps.edn | org.clojure/tools.deps.alpha | 0.12.1090 | 0.14.1212 |
Available diffs:
- https://github.com/clojure/tools.deps.alpha/compare/v0.12.1090...v0.14.1212
@skynet-gh Thanks for your quick confirmation! Just released v1.9.863.
That works too, thanks!
I get the following error on Windows in this project of mine running using the alias method in
/.clojure/deps.edn
:and the contents of that file are:
I get the same error on both 1.6.0 as well as the current latest, 1.9.859.
This works on version 1.5.1 on Windows, as well as 1.6.0+ on Linux.