Fork me on GitHub
#boot
<
2017-01-12
>
michael.heuberger00:01:14

to the above, i tried with the boot.pod/resources fn but that returns an url and dont know exactly what to do with it

michael.heuberger00:01:37

for example (io/file (boot.pod/resources “cljsjs/babel-polyfill/development/polyfill.inc.js”)) throws an error … any other suggestions?

mynomoto00:01:10

@michael.heuberger boot sift -j can be useful for what I understood. You can do boot sift -h for help on the sift task.

michael.heuberger01:01:56

@mynomoto thanks but not sure what parameters to use

michael.heuberger01:01:06

how do i copy the above with sift to the fileset?

mynomoto02:01:37

The sift task will add things to the fileset, in the -j case it will add things from jars to the fileset.

ag02:01:46

what’s the equivalent of figwheel’s (reset-autobuild) or we don’t need it?

mynomoto02:01:50

@ag you don't need it.

mynomoto02:01:09

Boot has no clean task

mynomoto02:01:19

Because it doesn't need it.

ag02:01:57

right, I was just updating readme for our project and it got me thinking, why I never have to do this 😉

mynomoto02:01:19

Good tooling 😃 Immutable filesets ftw

mynomoto02:01:52

@michael.heuberger boot -BPd cljsjs/async:2.0.0-rc.4-0 sift -j 'cljsjs/async:development/.*\.inc\.js$' show -f is an example that micha posted some days ago.

micha02:01:43

@dominicm you can use a gpg encrypted file easily

dominicm08:01:06

@micha is there an option in bootlaces, or is implementation left to the user?

mattyulrich14:01:36

Hey all - any options for disabling cert validation in boot?

micha14:01:07

@mattyulrich i think you'd have to do that at the JVM layer

bhagany15:01:15

I see my github comment was posted here, but I’ll ask again anyway - I’m trying to add tests to boot. The function I’m trying to test is in boot/pod/src/boot/tmpdir.clj, and so I’m adding the tests in boot/pod/test/boot/tmpdir_test.clj. However, make test does not seem to run any of the tests in boot/pod/test, and I don’t see an obvious way to make it happen. Any tips?

micha15:01:27

@bhagany the king of all things test is @richiardiandrea but i can have a look when i get into the office this morning

mattyulrich16:01:32

Thanks Micha - I’ll see if I can find a good way to do this in the launch4j config.

richiardiandrea17:01:08

@bhagany do you want to test the fileset?

bhagany17:01:18

I’m creating some filesets with map->TmpFileSet, but I don’t really need it run in a task

bhagany17:01:05

(I’m testing boot.tmpdir/diff* which takes 2 filesets)

richiardiandrea17:01:19

Ok lemme check then, it should be easy, probably the dir is not on the clrsspath

richiardiandrea17:01:16

Uhm it looks like we have other tests in that folder

bhagany17:01:42

yeah, I don’t think they get run

bhagany17:01:54

I added a failing test to one of them, and everything passed

bhagany17:01:37

that’s one way to make them pass 🙂

richiardiandrea17:01:31

Maybe @micha can help here 😁

bhagany17:01:27

I will await his wisdom

bhagany17:01:07

at least I know I can run just these tests with lein test now

richiardiandrea17:01:38

In theory also boot test should work, like the line above that one

richiardiandrea21:01:41

I have a question, is there a reason why we can about time when using boot.core/fileset-diff? I am looking at boot-reload with figwheel again and I don't see any reason not to just use :hash...but maybe I am missing something

bhagany22:01:55

I had this question too, and I don’t know the answer

bhagany22:01:45

I switched to just :hash in Perun, because :time would change for reasons I couldn’t determine in between watch loops

richiardiandrea22:01:04

it is basically creating a nested data structure

richiardiandrea22:01:13

and then diffing

richiardiandrea22:01:31

(I mean your patch could fix that)

bhagany22:01:50

hmm, I thought it was creating a structure like {”path” {:hash “xxx” :time 1234}}...

bhagany22:01:23

which is nested, but the part that needs to be nested to be affected by my patch are the values in the inner-most map (aka ”xxx” and 1234)

richiardiandrea22:01:24

It is weird because I have two files with exactly identical content and they have different :hash key

bhagany22:01:27

huh, I’ve never seen that one

bhagany22:01:57

then again, I’m not sure how :hash is calculated… maybe it takes the file name into account?

richiardiandrea22:01:00

if I am looking at the correct place 😄

bhagany22:01:40

yeah, I think you are. following on from there, https://github.com/arichiardi/boot/blob/commit-verbosity-inc/boot/pod/src/boot/from/digest.clj#L62, it looks like it’s just using the file contents

bhagany22:01:08

which means I don’t understand the result you’re seeing

richiardiandrea22:01:33

I will open an issue with what I found