Fork me on GitHub
#boot
<
2015-11-10
>
clem01:11:34

Is there a good example around for how to define a task within an anonymous pod?

micha01:11:57

@clem: what are you trying to do?

micha01:11:06

tasks run in the main thread

clem01:11:22

Trying to run (boot (uber)) with a specific set of dependencies as defined in the pod.

micha01:11:23

they start pods to do work, which is just calling regular functions in the pods

micha01:11:51

why not just run that, why the need for the pod?

clem01:11:38

I just want to limit the dependencies to a specific subset of what may already be defined by set-env!. Is there another means of doing that?

micha01:11:21

you want to exclude certain things from the uberjar? is that it?

clem01:11:53

Really, I just want to extract a resource dependency to target/ as a prerequisite for other tasks.

micha01:11:44

the target directory can't really be used to store state like tht

micha01:11:00

it's in an undefined state while boot is running

micha01:11:36

you want to use the fileset, i think

micha01:11:13

you have the uber task to unpack dependencies into the fileset

micha01:11:32

then there is the sift task to select things from among those

micha01:11:04

the sift task can be used to filter the fileset or move things around

clem01:11:57

Ok, I think that follows.

micha01:11:08

the sift task itself has a -j option

micha01:11:21

that you can use to extract resources from dependency jars

micha01:11:34

instead of using the uber task you might find it simpler to use that

clem01:11:09

I’ll give that a go.

micha01:11:29

:thumbsup:

clem01:11:38

Will sift still work if the dependency has a .zip extension?

clem01:11:12

Ok, looks like it does. simple_smile

isaac05:11:50

Is Clojure can re-import java class?

micha05:11:55

no, not really

micha05:11:17

pods are a way to do it

dm307:11:19

there's a solution which sometimes works: https://github.com/zcaudate/vinyasa#reimport

dm307:11:46

but that's only for development @isaac

pandeiro10:11:49

any of you guys using cursive w/ boot projects?

cfleming10:11:02

@pandeiro: I don’t use boot myself, but I believe https://github.com/boot-clj/boot/wiki/For-Cursive-Users is the state of the art

pandeiro10:11:48

@cfleming: wonderful, thanks - and cursive is fine with clojurescript right?

wagjo10:11:03

Hi, what is the idiomatic way in boot to include non-mavenized .jar dependency?

martinklepsch12:11:33

I’m trying to eval .cljc in a Boot repl but that seems not to work because Boot (or something else down the line) somehow saves forms to files ending in .clj:

clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: Conditional read not allowed
             java.lang.RuntimeException: Conditional read not allowed
clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: clojure.string, compiling:(/var/folders/ss/4qg3hk1d4nv40phg1360ng5w0000gn/T/boot.user962624192297711470.clj:2:11)
Anyone successfully did interactive cljc eval with Boot?

alandipert14:11:18

@wagjo: boot.pod/add-classpath will do the trick

alandipert14:11:34

(adds to the current pod)

micha15:11:19

@wagjo: is boot working with dunaj currently?

micha15:11:36

is there anything we can do to make it work better with dunaj?

micha15:11:10

also i've been thinking that boot shouldn't ship as AOT clojure namespaces, ive been thinking we should compile boot namespaces the first time boot runs and cache them by BOOT_CLOJURE_NAME and BOOT_CLOJURE_VERSION

micha15:11:18

to avoid any binary compatibility issues

micha17:11:15

@juhoteperi: i don't think the new boot gpg stuff supports the BOOT_<REPO NAME>_USERNAME env var convention

micha17:11:35

see line 6

micha17:11:53

it can't really know there which repo name you're using, i don't think

micha17:11:09

it looks like it just supports BOOT_USERNAME

juhoteperi17:11:31

Hmhh, interesting. But shouldn't bee too hard to fix.

micha17:11:55

yeah for deploy for sure

micha17:11:08

i guess for reading too

micha17:11:18

just not as easy simple_smile

micha17:11:02

there are two places

micha17:11:12

one in resolve-dependencies and the other in deploy

micha17:11:35

line 240 also

martinklepsch19:11:06

https://github.com/adzerk-oss/boot-test/pull/13 — any objections if I merge and deploy this?

pandeiro20:11:25

@juhoteperi: can boot-less concatenate @imported CSS files?

pandeiro20:11:18

i noticed it concatenates all imported less files into the one foo.main.less -> foo.css, but the @import (css) doesn't get concatenated... is that how it's supposed to work?

juhoteperi21:11:21

pandeiro: @import (inline) "foo.css";