tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
euccastro 2020-07-09T11:26:34.302500Z

you may want to try asking in #clojurescript?

2020-07-09T11:27:29.302700Z

hey, thanks, that's probably the right place

psetmaj 2020-07-09T19:13:37.304900Z

Are there any default aliases or good ways to get some extra resource paths added to the classpath for all local repls started with the clojure command? (some key in ~/.clojure/deps.edn perhaps?) I’d prefer not to need to add a -A flag to all invocations across the several IDEs I use

alexmiller 2020-07-09T19:14:31.305500Z

if you mean an alias that is automatically supplied, no

alexmiller 2020-07-09T19:14:57.305900Z

:paths in ~/.clojure/deps.edn will be used everywhere

psetmaj 2020-07-09T19:15:23.306400Z

I thought :paths got merged across the candidate deps.edns with a “last one wins” strategy

alexmiller 2020-07-09T19:16:42.306700Z

oh yes, sorry

psetmaj 2020-07-09T19:21:09.308800Z

Does :extra-paths only exist for aliases? My use case is that I’ve got a local directory for various properties files that’s global to all projects (shared DB/service locations, and whatnot for local development, shared across several languages).

alexmiller 2020-07-09T19:33:28.309100Z

yes, only for aliases

psetmaj 2020-07-09T19:48:15.309600Z

Okay, thanks for your responsiveness and time 🙂

souenzzo 2020-07-09T22:12:57.311400Z

@alexmiller I see that :git/url "file:///foo" isn't supported by gitlibs I already find that it's a issue with clojure.tools.gitlibs.impl/clean-url A PR/Patch is welcome about this problem?

alexmiller 2020-07-09T22:13:36.311900Z

I'm unclear why this is better than using :local/root

alexmiller 2020-07-09T22:14:26.312600Z

git deps let you get the dep from a remote git repo. if you already have it locally, just use it?

alexmiller 2020-07-09T22:14:42.313Z

I guess a git dep would let you use multiple shas

alexmiller 2020-07-09T22:14:49.313300Z

can you walk back and say how you're using it?

alexmiller 2020-07-09T22:15:13.314Z

stepping away for evening but will check later

souenzzo 2020-07-09T22:19:01.317600Z

Let's go: I'm trying to deploy my application with clojure -Sdeps "{:deps {my/app {:git/url \"...\" :sha \"...\"}}}" -m my.app.start But I'm on AWS/CodeCommit CodeCommit on ephemeral EC2 recommends use https with credential provider jgit do not support credential provider so I'm trying to use git-cli to clone, then use local file I can run directly but I want to keep my SHA control in the "start command line"

souenzzo 2020-07-09T23:29:57.318200Z

TL; DR: How to use git deps with CodeCommit?

2020-07-10T11:27:42.318500Z

@souenzzo You have to put some magic in your .gitconfig . Something like:

[credential "<http://amazonaws.com|amazonaws.com>"]
  helper = !aws --profile dev1 codecommit credential-helper $@
  useHttpPath = true
And maybe enfore https (not sure, don’t remember):
[url "<https://github.com/>"]
  insteadOf = git@github.com:

2020-07-10T11:28:49.318800Z

If I remember correctly this did work with tools.deps