You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the user profile -- ~/.lein/profiles.clj -- is not used for setting repositories/local-repo/mirrors when executing scripts. If I have a custom local repo set in profiles, and I lein install a custom library, I am unable to refer to it in a script, since it can't be found in the default repositories.
Also, at work I have to specify mirrors for repositories. I've already done that in ~/.lein/profiles.clj, and it would be un-DRY if I had to specify the correct repos in every script, rather than a single profiles.clj file.
If I have a non-default local-repo setting in my profiles.clj, and I somehow configure my script to refer to it (not sure if that's even possible), I can't share my script with a team member who has a different local-repo location.
$ cd ~
$ lein exec example.clj
clojure.lang.Compiler$CompilerException: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact cool-library:cool-library:jar:0.1.0-SNAPSHOT in clojars (http://clojars.org/repo), compiling:(~/example.clj:3:37)
The text was updated successfully, but these errors were encountered:
It appears that the user profile --
~/.lein/profiles.clj
-- is not used for setting repositories/local-repo/mirrors when executing scripts. If I have a custom local repo set in profiles, and Ilein install
a custom library, I am unable to refer to it in a script, since it can't be found in the default repositories.Also, at work I have to specify mirrors for repositories. I've already done that in
~/.lein/profiles.clj
, and it would be un-DRY if I had to specify the correct repos in every script, rather than a singleprofiles.clj
file.If I have a non-default
local-repo
setting in myprofiles.clj
, and I somehow configure my script to refer to it (not sure if that's even possible), I can't share my script with a team member who has a differentlocal-repo
location.Example:
~/.lein/profiles.clj
Then running:
~/some-script.clj
Trying to use the dependency
The text was updated successfully, but these errors were encountered: