This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-17
Channels
- # aleph (2)
- # announcements (20)
- # aws (43)
- # aws-lambda (5)
- # babashka (9)
- # beginners (231)
- # calva (4)
- # cider (12)
- # cljdoc (8)
- # cljsrn (3)
- # clojure (47)
- # clojure-europe (5)
- # clojure-nl (4)
- # clojure-spec (41)
- # clojure-uk (47)
- # clojuredesign-podcast (3)
- # clojurescript (20)
- # cryogen (3)
- # cursive (4)
- # data-science (2)
- # datomic (15)
- # emacs (4)
- # fulcro (21)
- # jackdaw (6)
- # jobs (1)
- # joker (13)
- # juxt (8)
- # kaocha (10)
- # malli (7)
- # off-topic (29)
- # pathom (11)
- # re-frame (19)
- # reagent (3)
- # reitit (26)
- # remote-jobs (8)
- # schema (2)
- # shadow-cljs (112)
- # spacemacs (1)
- # tools-deps (49)
- # vim (2)
- # xtdb (7)
tools.deps.alpha 0.8.264 and clj 1.10.1.496 are now available.
The main change in this is that support for s3 maven repos has been completely replaced and is now using a new impl of the Maven resolver transporter API based on the cognitect aws-api. The old version used the transporter-wagon adapter, the unmaintained spring s3 wagon, and the AWS Java SDK. Those deps have been happily dropped on the floor, and all other deps were bumped as well. Support for some newer AWS credential sources may be better, particularly when running on AWS. Also, you can explicitly set the s3 bucket region in your deps.edn like {:mvn/repos {"my-bucket-repo" {:url "
- this is a feature of this transporter, not a general AWS thing.
The intention here is that any existing use of an s3 maven repo should continue to work as it did before. If you find that not to be the case, please let me know! It has been tested in a number of configurations by several people, but you know how it goes.
tools.deps tool makers may want to do a quick check as this version has some significant transitive dependency differences (hopefully mostly for the better!)
docs have not yet been updated, but I'll do that tomorrow
How can I get my clojure cli version? I usually install with system package manager, It only shows the version of Clojure.
To get the clojure cli verison without launching the REPL as clj -Sverbose
do, you can also use clj -Sdescribe
.
@alexmillerRight ?
clj -Sverbose
@alexmiller thanks!
I was wondering about the version thing the other day as well, and tried to invoke clj --version
which printed the help-text, which I failed to parse (ie I didn’t understand that Print important path info to console
meant “and also print version”
looking through clojure/brew-install
this should be simple enough, but is there a Jira project for this project where one might submit a patch?
you can use TDEPS for tickets, but I just added it to the repo
thx, you too
deps.clj updated to 1.10.496: https://github.com/borkdude/deps.clj/releases/tag/v0.0.6
Hey all! I'm looking to publish a library on clojars with a deps.edn
file that specifies a :git/url
based dependency. I realize that this won't work with a pom.xml
- does tools-deps
find transitive dependencies using a deps.edn
files in addition to pom.xml
files?
Yes, both, prefers deps.edn
Or rather will use exactly one but can be either
@borkdude Are any of these differences between deps.clj
and the regular clojure
script of any concern?
PS C:\Users\sean\clojure\cool> deps -Sdescribe
{:deps-clj-version "0.0.6"
...
:config-files ["deps.edn" "C:\\Users\\sean\\.clojure\\deps.edn" "deps.edn"]
:config-user "C:\\Users\\sean\\.clojure\\deps.edn"
...
:install-dir nil
...
:force ""
:repro ""
...}
PS C:\Users\sean\clojure\cool> clojure -Sdescribe
{...
:config-files ["C:\Users\sean\scoop\modules\ClojureTools\deps.edn" "C:\Users\sean\.clojure\deps.edn" "deps.edn"]
:config-user "C:\Users\sean\.clojure\deps.edn"
...
:install-dir "C:\Users\sean\scoop\modules\ClojureTools"
...
:force False
:repro False
...}
:config-files
seems odd with deps.edn
in there twice (and :force
/`:repro` seem to be ""
but that's truthy?)
(I can understand :install-dir
being nil
since deps.clj
is self-contained)
yes, that's the reason why install-dir is nil. the rest can be fixed if it's bothering anyone. also the escaping seems different?
I think False
may be coming from Powershell? it doesn't seem like something cmd.exe would produce
@seancorfield I may have put a str
too many here: https://github.com/borkdude/deps.clj/blob/4c374238ceec510a097749df4b2f4a5a17a3e355/src/borkdude/deps.clj#L426
The macOS/Linux version shows:
:force false
:repro false
False
is just PS's version of false
🙂
I'll make an issue for this. It doesn't seem something that's very urgent, but I'll fix it
I assumed the \\
was due to being produced by Clojure/Java, whereas \
is native PS (or cmd).
I guess :config-files
is no longer used by any tooling so it doesn't matter -- it just looked odd with deps.edn
in there twice.
I basically did the naive thing and ported bash straight into clojure without really think hard 🙂
deps
is a great option on Windows -- much appreciated!
https://github.com/borkdude/deps.clj/issues/7 if you think this is fun, I also take PRs. there are build / dev instructions in the other open issue.
Yeah Sean, get off the bench and help out for a change! ;)
I kid, I kid
btw bb.exe
is now a thing on Windows so you can execute the deps.clj
script as well (so you can tweak it in Notepad++)
Looking through the source it doesn't look like transitive deps.edn
files are supported in jars... Would a PR be welcome that adds this to the local resolver? similar to how find-pom
works currently?
deps.edn in jars is not a thing
and if I wanted to make it a thing, I'd try to design that first
like designing anything else - starting with goals, thinking about alternatives, examining their tradeoffs, making decisions, implementing
I don't have time to go down that path atm