Fork me on GitHub
#boot
<
2017-04-28
>
souenzzo01:04:36

It's easy to make boot my-task that (-> (read-my-file "abc") (my-cool-fn-with-environment-variables) (write-file "./target/out"))?

alandipert02:04:17

@souenzzo it is, but it's better to add the files to the fileset, and the write them to disk later with the target task

souenzzo02:04:21

Cool. So I will leave lein... In lein, I "need to write a plugin" to do that.

raywillig03:04:49

hi how can i use sift to pull in assets from a jar and have them show up in my target?

tord07:04:57

@mobileink: The standard way is running a command like elm-make Main.elm --output app.js. Sounds like it should be quite easy to trigger this automatically whenever an Elm file in the project is modified?

tord07:04:43

@donaldball: Thanks, boot-sass looks like a good starting point.

djebbz08:04:24

Hello, everyone (especially @roman01la @martinklepsch @anmonteiro). I found the problem and the solution about the Clojurescript compiler being stuck at compile time (thanks to @anmonteiro's suggestion) : I removed :parallel-build :true and the error appeared, crystal clear : Circular dependency detected, A -> B -> A. It was easy to fix A -> B was just dead code in my case. It looks like parallel-build doesn't detect circular dependency very well, smells like a good old race condition πŸ˜„ Time to file a bug in CLJS ?

Roman Liutikov09:04:49

djebbz: Glad it was solved πŸ™‚

djebbz09:04:11

Not more than me πŸ˜„ haha

richiardiandrea15:04:02

Probably worth opening a bug or at least report it in #cljs-dev

gamecubate12:04:07

Hi everyone. Trying to reclaim disk space and noticed ~/.boot/cache takes 4Gb of hdd space. I have no boot processes running right now and assume that flushing cache won’t affect anything (other than next project startup time).

gamecubate12:04:17

Not sure why I posted this, though, as it’s very easy to test (renaming cache to cache.O and boot dev’ing a project).

gamecubate12:04:39

Just wanted to share my surprise at the amount of space taken by .boot/cache I guess.

gamecubate13:04:05

It works. 4Gb reclaimed. boot.jar just re-downloaded after boot launch.

raywillig14:04:59

are there any sift experts on here this morning?

dominicm15:04:31

@gamecubate there was some mention about a "GC" for .boot/cache

richiardiandrea15:04:25

@raywillig depends on the problem πŸ˜€

raywillig15:04:44

@richiardiandrea I have a jar dependency with some assets (images, CSS files, etc) that I would like to have end up in my target when I build

richiardiandrea15:04:18

I think there should be an sift :add-jar that explodes it onto the files then you move the things you would like to keep with sift :move

gamecubate16:04:47

@dominicm Sorry, but what’s a GC?

dominicm16:04:23

gamecubate: garbage collection

dominicm16:04:23

gamecubate: garbage collection

gamecubate16:04:37

Googling for this revealed precisely that in the archives of the boot channel indeed. Thanks.

raywillig18:04:30

@richiardiandrea can you give me an example of how the sym for the jar should look?

raywillig18:04:49

i think maybe that's wrong and it's not actually extracting anything

richiardiandrea19:04:11

@raywillig It is the canonical group-id/package:#".*"

richiardiandrea19:04:48

the regex part makes so that you won't need a subsequent :move anymore

raywillig19:04:24

Is the version required in the declaration?

raywillig20:04:50

i did that just as test and it doesn't seem to put anything in target. Is there another step i'm missing?

richiardiandrea20:04:38

looks good to me...

richiardiandrea20:04:13

did you try in the repl? Maybe the regex does not need #

raywillig20:04:56

@richiardiandrea so i did boot sift -j rowtr/rowtr-css:".*" target and got this

RAYs-MBP:simple ray$ tree target/
target/
└── META-INF
    β”œβ”€β”€ MANIFEST.MF
    └── maven
        └── rowtr
            └── rowtr-css
                β”œβ”€β”€ pom.properties
                └── pom.xml

raywillig20:04:17

any idea why it would only grab from META-INF?

richiardiandrea20:04:48

uhm, looks like the regex got literal dot

richiardiandrea20:04:10

that is why I'd use the repl just to be sure

richiardiandrea20:04:20

the shell might interfere there

raywillig20:04:51

i got the same result in the repl

raywillig20:04:08

(boot (comp (sift :add-jar {'rowtr/rowtr-css #".*"}) (target))

raywillig20:04:23

gives me the same result in target dir

richiardiandrea20:04:32

so it is obiously a regex problem, remember that it matches on the entire path

borkdude21:04:05

I’m trying clojure.tools.namespace.repl with boot but I get this stacktrace regarding camel-snake-kebab: https://gist.github.com/borkdude/4c84ea8349f8cd9dad249cb20fb7016e Any clue what is going on here?

borkdude21:04:50

Hmm, I’ll try the suggestion at the bottom here: https://github.com/boot-clj/boot/wiki/Repl-reloading

raywillig21:04:21

@richiardiandrea i think it might have been a caching issue. I rebuilt the jar and bumped the version and now i get lots of files