Comments (7)
Maybe we should default the proxy information, in the same way leiningen does
from alembic.
I thought about it already.
I'll try
from alembic.
As I had the proxy values passing already working, I left it in.
But if no proxy parameter is specified, then it reads it via the method from leiningen.core.classpath path as you suggested.
So the function where the proxy config is the really used looks like this:
(defn resolve-dependencies
[still dependencies repositories proxy]
(classlojure/eval-in
(:alembic-classloader @still)
`(do
(require '[leiningen.core.classpath :as ~'cp])
(mapv
(fn [dep#]
(letfn [(apath# [^java.io.File f#] (.getAbsolutePath f#))]
{:coords dep#
:jar (-> dep# meta :file apath#)}))
(keys
(aether/resolve-dependencies
:coordinates '~(vec dependencies)
:repositories ~repositories
:proxy '~(or proxy (cp/get-proxy-settings) )))))))
What do you think ?
from alembic.
I made as well a version which always uses the environment variables without a way to override the proxy configuration via function parameters.
It's less code changes, so simpler.
Let me know, which version you prefer and I send a new pull request.
from alembic.
I think I would favour having the default picked up from the environment, and still being able to explicitly overide.
from alembic.
OK.
The pull request is updated.
from alembic.
Fixed in 8ced4ed
from alembic.
Related Issues (8)
- Don't you need to quote the symbol?
- Add feature to add repositories either globally or at the `distill` level HOT 1
- Add a switch to disable version conflict warnings HOT 1
- creates a tmp file without ensuring the tmp directory exists
- load-project fails when using :env in the authentication credentials for a repository HOT 2
- Distill not working HOT 6
- use leiningen.core.project/default-repositories if no project.clj is present HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alembic.