Fork me on GitHub
#tools-deps
<
2020-06-03
>
vlaaad18:06:44

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

vlaaad18:06:52

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

ghadi18:06:29

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

ghadi18:06:10

that is not a repro, that's a repo

4
vlaaad18:06:24

good point

ghadi18:06:34

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

vlaaad18:06:46

ah, sorry, I'll make a repro

Alex Miller (Clojure team)19:06:45

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

Alex Miller (Clojure team)19:06:25

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

vlaaad19:06:04

but it's what it does?

Alex Miller (Clojure team)19:06:38

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

vlaaad19:06:58

sure, I understand that is abusing maven features

Alex Miller (Clojure team)19:06:18

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

Alex Miller (Clojure team)19:06:54

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

vlaaad19:06:44

Okay, thanks

Drew Verlee22:06:08

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?

hiredman23:06:36

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

Drew Verlee00:06:32

The downside is that you have to have a GitHub deploy key per repo.

kenny23:06:49

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?

kenny00:06:39

Git deps won't work at all unless they generate an older key. I think anyone with a new Mac will hit this issue 😞