Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use leiningen.core.project/default-repositories if no project.clj is present #15

Open
squiddle opened this issue Aug 31, 2016 · 1 comment

Comments

@squiddle
Copy link

squiddle commented Aug 31, 2016

using alembic in just a lein repl without a project.clj is a little bit cumbersome, as i have to add repositories or alembic fails due to not finding project.clj

(alembic.still/distill 
  '[awesome-lib "9000"] 
  :repositories [
    ["central" {:url "https://repo1.maven.org/maven2/" :snapshots false}]
    ["clojars" {:url "https://clojars.org/repo/"]])

could alembic not fall back to use leiningen.core.project/default-repositories

or is it possible to define some defaults in a user profile?

@freckletonj
Copy link

freckletonj commented Apr 21, 2017

Agreed! I can't find any other way around this, if I'm using an anonymous REPL, not associated with any project.clj:

;; What I have to do currently

(require 'alembic.still)
(alembic.still/distill
 '[clj-time "0.13.0"]
 :repositories [
    ["central" {:url "https://repo1.maven.org/maven2/" :snapshots false}]
    ["clojars" {:url "https://clojars.org/repo/"}]]
 )
(require '[clj-time.core :as t]
         '[clj-time.coerce :as c])

;; ----------------------------------------------------

;; What I'd like to be able to do

(require 'alembic.still)
(alembic.still/distill
 '[clj-time "0.13.0"])
(require '[clj-time.core :as t]
         '[clj-time.coerce :as c])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants