Closed arichiardi closed 5 years ago
Could someone( @arichiardi ) please elaborate on the issue; to a newcomer?
So the issue is very simple, default-repositories
should imho go in boot.core
or at least in boot.pod
, because user code would want to include it at configuration time without the need of importing an additional dependency (boot.aether
) just for referring to a var.
This is a breaking change though, so I was looking for other opinions as well.
In your example code you could just append custom repositories to (:repositories (get-env))
?
I think it is best for pods to include the repositories configured for the project?
Uhm, not sure I get it, I am creating a pod there and need to specify a custom repo, which I am building, am I missing something?
boot.user=> (:repositories (boot.core/get-env))
[["clojars" {:url "https://repo.clojars.org/", :username "bar", :password "foo"}] ["maven-central" {:url "https://repo1.maven.org/maven2"}]]
boot.user=> (conj (:repositories (boot.core/get-env)) ["dynamodb-local-oregon" {:url "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"}])
[["clojars" {:url "https://repo.clojars.org/", :username "foo", :password "bar"}] ["maven-central" {:url "https://repo1.maven.org/maven2"}] ["dynamodb-local-oregon" {:url "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"}]]
(Btw. it is quite dangerous solution to always add credentials to repository maps...)
Oh ok now I get it. It felt a bit better to use the default repos and completely override what boot
gives me in the first place at runtime. Just wiping out everything basically. I guess your solution would have worked as well very well.
closing as the correct way to do this is by modifying the env.
Hello folks!
Sometimes you want to use it when creating pods, for instance I have recently used this way:
There is probably a reason why it is not in
boot.core
orboot.pod
already, but it would be nice to have somewhere without having to specify a dependency onboot/aether
.I mainly opened this issue to be told: "you can go this other way" :smile: