tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
vlaaad 2020-06-03T18:48:44.263400Z

not sure it's important, but I was reminded of a small caching problem I had with tools-deps: it seems to cache the classpath per list of aliases enabled or something similar that excludes the java version, while maven allows selecting different dependencies based on java version right inside the pom

vlaaad 2020-06-03T18:49:52.264600Z

so the same deps.edn might produce different classpaths based on JDK used

ghadi 2020-06-03T18:51:29.266200Z

a repro would be helpful. By design tools.deps doesn't attempt to mimic Maven

vlaaad 2020-06-03T18:51:42.266500Z

https://github.com/cljfx/cljfx/ is a repro

ghadi 2020-06-03T18:52:10.266900Z

that is not a repro, that's a repo

1
vlaaad 2020-06-03T18:52:24.267500Z

good point

ghadi 2020-06-03T18:52:34.267700Z

"`clojure -A:foo -Spath` -> expected this, but received that" is a repro

vlaaad 2020-06-03T18:52:46.268Z

ah, sorry, I'll make a repro

vlaaad 2020-06-03T19:02:32.268200Z

repro

alexmiller 2020-06-03T19:07:45.268700Z

"switch java version to 8 so it should trigger different profile according to activation rules" is not something clj does

alexmiller 2020-06-03T19:07:51.268900Z

that's a maven thing

alexmiller 2020-06-03T19:09:25.269500Z

you can make Clojure aliases that include the desired classifier variant of cljfx if you like

vlaaad 2020-06-03T19:11:04.270200Z

but it's what it does?

alexmiller 2020-06-03T19:11:13.270500Z

it's what Maven does

alexmiller 2020-06-03T19:11:38.271100Z

clj is not Maven and I have no plans to add that

vlaaad 2020-06-03T19:12:58.271900Z

sure, I understand that is abusing maven features

alexmiller 2020-06-03T19:13:18.272300Z

it's very much using Maven features as they were intended

alexmiller 2020-06-03T19:13:54.272700Z

just don't expect clj to support all of that (this is just the tip of the iceberg)

vlaaad 2020-06-03T19:17:44.273700Z

Okay, thanks

2020-06-03T22:08:08.276900Z

I have deps that specifies a private github repo via SSH (e.g git@github...) This works finally locally. But i'm trying to know run my build scripts as part of a deployment pipline (specifically google steps). I'm running into some complications concerning deployment keys, ssh, etc... by any chance has anyone been through this before and have any advice?

2020-06-03T23:44:36.278600Z

It may be easier to use the git build step to fetcch the repo and then treat it as a local dep

2020-06-03T23:46:48.279900Z

Or the docs for private git repos might help directly https://cloud.google.com/cloud-build/docs/access-private-github-repos

kenny 2020-06-03T23:52:49.281200Z

There's no actual fix mentioned in https://ask.clojure.org/index.php/8725/deps-support-newer-private-file-formats-types-such-ed25519. Anyone know what the fix is? We're onboarding new developers and they all hit this issue. Guessing the fix has something to do with generating an older ssh key?