Skip to content

Commit

Permalink
fixes #69 by testing for local deps.edn
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Jul 16, 2021
1 parent 77621f7 commit 90bff5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,6 +1,7 @@
# Changes

* 1.1.next in progress
* Fix #69 by excluding `:project` from basis if no `deps.edn` exists in the current directory.
* Address #67 by annotating most namespaces with `^:no-doc`.
* Update `polylith` template to follow current Polylith practices.

Expand Down
8 changes: 6 additions & 2 deletions src/clj_new/helpers.clj
@@ -1,6 +1,7 @@
(ns ^:no-doc clj-new.helpers
"The top-level logic for the clj-new create/generate entry points."
(:require [clojure.pprint :as pp]
(:require [clojure.java.io :as io]
[clojure.pprint :as pp]
[clojure.stacktrace :as stack]
[clojure.string :as str]
[clojure.tools.cli :as cli]
Expand Down Expand Up @@ -92,7 +93,10 @@
{:mvn/version tmp-version})
boot-tmp-name (str group "/boot-template" suffix)
lein-tmp-name (str group "/lein-template" suffix)
all-deps (deps/create-basis {})
has-deps (.exists (io/file "deps.edn"))
all-deps (deps/create-basis (cond-> {}
(not has-deps)
(assoc :project nil)))
output
(with-out-str
(binding [*err* *out*]
Expand Down

0 comments on commit 90bff5f

Please sign in to comment.