This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-13
Channels
- # bangalore-clj (1)
- # beginners (40)
- # boot (22)
- # clara (19)
- # cljs-dev (265)
- # clojure (160)
- # clojure-dev (6)
- # clojure-italy (5)
- # clojure-russia (47)
- # clojure-spec (10)
- # clojure-uk (63)
- # clojurescript (88)
- # core-async (8)
- # cursive (54)
- # datomic (48)
- # emacs (32)
- # garden (3)
- # graphql (29)
- # hoplon (54)
- # jobs (1)
- # klipse (4)
- # luminus (5)
- # lumo (21)
- # mount (5)
- # off-topic (16)
- # om (2)
- # pedestal (10)
- # play-clj (1)
- # portkey (32)
- # re-frame (21)
- # reagent (48)
- # rum (1)
- # spacemacs (4)
- # sql (3)
- # unrepl (5)
@alandipert have you ever used clojure.spec with boot? if so do you have a build.boot file to point me to?
@benbot hey again, you can code your tasks in you own namespaces and require them in your build.boot
file.
Do you have to add their path to the :resource-paths
? If so, doesn’t that mean they’d be included in jar files that boot would make?
Take a look at the set-env!
function’s doc https://github.com/boot-clj/boot/wiki/Boot-Environment . You can use this function inside tasks not just at the beginning of the build.boot file. This way you can choose what to add or or remove from the environment depending on the task.
@tmarble sorry, i have not
@jeremys you sort of get that by putting tasks in ~/.boot/profile.boot and build.boot for your project (but there is no "include another boot file" directive AFAIK)
@tmarble I have https://github.com/mynomoto/adamant that uses clojure.spec with boot.
@alandipert I just cloned adamant and got this: http://paste.debian.net/976384/
which is the same behavior I saw when setting BOOT_CLOJURE_VERSION=1.9.0-alpha17 in my boot.properties
@tmarble possibly, what happens if you do boot --no-profile build
?
i mean, feel free to also still file a bug even if that fixes. w/ profile contents if possible
@mynomoto so after fixing my profile.boot i get errors about Could not find artifact com.maitria:specter-edn:jar:0.1.4-SNAPSHOT in clojars (https://repo.clojars.org/) but this has helped debug my problem
@alandipert fascinating... in my profile.boot I had (this old boilerplate)...
(defn- generate-lein-project-file!
[& {:keys [keep-project] :or {:keep-project true}}]
(let [pfile ((resolve ') "project.clj")
and spec complained about the default form thingy.. this resolves it:
(defn- generate-lein-project-file!
[& {:keys [keep-project]}]
(let [keep-project (or (nil? keep-project) keep-project)
pfile ((resolve ') "project.clj")