Giter VIP home page Giter VIP logo

Comments (7)

hugoduncan avatar hugoduncan commented on June 22, 2024

Maybe we should default the proxy information, in the same way leiningen does

from alembic.

behrica avatar behrica commented on June 22, 2024

I thought about it already.
I'll try

from alembic.

behrica avatar behrica commented on June 22, 2024

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.

behrica avatar behrica commented on June 22, 2024

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.

hugoduncan avatar hugoduncan commented on June 22, 2024

I think I would favour having the default picked up from the environment, and still being able to explicitly overide.

from alembic.

behrica avatar behrica commented on June 22, 2024

OK.
The pull request is updated.

from alembic.

hugoduncan avatar hugoduncan commented on June 22, 2024

Fixed in 8ced4ed

from alembic.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.