Fork me on GitHub
#leiningen
<
2021-03-05
>
gklijs12:03:55

Maybe stating the obvious, but if it’s a non-snapshot, and available locally, that one will be used.

jcsims18:03:45

yup, I'm thinking about it from the dependency confusion angle. If I specify [org.clojure/clojure "1.10.0"] and version "99.0" is available elsewhere, then I won't get the "99.0" version. I'll get what I specified

jcsims18:03:13

vs if "1.10.0" is available in a different repo, it's not as clear which will get picked up

jcsims18:03:39

IMO the right answer is "don't let that non-owners of that artifact upload it elsewhere", but I'm making sure I understand the problem as it stands today

gklijs18:03:44

It's a known risk/exploit with a lot of package managers. With maven central at least it's very hard to get something in. The exploit is when you know some company is using an internal library, and upload the same, or a newer version to the central 'store'.

jcsims20:03:49

yes - hard to get something in Maven, and version globs are so much rarer in the Maven world