Fork me on GitHub
#boot
<
2016-01-17
>
seancorfield00:01:58

https://www.refheap.com/113732 lines 2-6 are expected output (from showing documentation about the template), then lines 7-18 are produced by Boot… @micha @alandipert What is the "correct" way to exit successfully from the middle of a task? Or should I just structure the code to avoid that?

seancorfield00:01:29

Boot new is coming along…

(! 542)-> boot -d seancorfield/boot-new:0.1.0-SNAPSHOT new -h
Retrieving boot-new-0.1.0-20160117.001942-4.jar from 
Generate a new project from a template. The long form arguments mostly
follow those of `lein new` except that -n / --name is required and you
specify the template with -t / --template.

Options:
  -h, --help                  Print this help info.
  -a, --args ARG              Conj ARG onto arguments for the template itself.
  -f, --force                 Force Boot new to overwrite existing directory.
  -n, --name NAME             Set generated project name to NAME.
  -o, --to-dir DIR            Set directory to use instead of NAME to DIR.
  -s, --show                  Show documentation for the template.
  -S, --snapshot              Look for a SNAPSHOT version of the template.
  -t, --template TEMPLATE     Set the template to use to TEMPLATE.
  -V, --template-version VER  Set the version of the template to use to VER.

seancorfield00:01:35

That’s par with lein new (and it works by reusing leiningen.new.templates file and leiningen-core as a lib).

meow00:01:21

fyi I don't have access to that Windows Vista machine any more and didn't get very far testing boot on it, but the next time I can get to that machine I will try to do more.

seancorfield01:01:51

OK, there’s a 0.1.0 release of seancorfield/boot-new that should have parity with lein new. Working on 0.2.0 now that should support Boot templates.

tcrawley02:01:10

@micha: do you have any invites you can share?

micha02:01:11

@tcrawley: i think i do

richiardiandrea03:01:43

Me too! @micha please send me one at my address here on Slack

tolitius05:01:27

@seancorfield: niice, thanks for working on boot-new! Besides the obvious "template" benefits, I feel like it will allow a lot more people to join the boot party smoothly, and then gradually understand internal concepts.

seancorfield06:01:11

Yeah, I'll definitely be looking for feedback from everyone on the built-in templates so we can on-board people with best practices.

codemartin15:01:34

Hi, I have a problem with my boot based problem and the java class path. When I eval this line in boot repl it works fine: https://github.com/fromheten/rad/pull/23/files#diff-de351ca7812703db36c5475b663fc516R62. But when I run boot test, I get the error clojure.lang.ExceptionInfo: java.io.FileNotFoundException: Could not locate test_package__init.class or test_package.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name. (full stack trace: https://www.refheap.com/113760). In my build.boot I set-env! to include sources from ./test, where the tests are as well as my test packages. I wonder: why does it work fine from the interactive REPL, but not from boot test? And what is the solution? Now I just comment out those tests, and then run boot test. But that is not a good solution...

juhoteperi15:01:05

@codemartin: test-package ns is in wrong path, packages/test_package.clj should have ns packages.test-package

codemartin15:01:34

@juhoteperi: Thanks for answering! I found the error in another file, and it was my spelling mistake. I'm sorry for wasting everyones time with this question, but thanks for being so kind to check it out!

micha16:01:42

hi @codemartin, welcome!

pesterhazy18:01:38

Trying to understand what :scope does in build.boot. Is this documented anywhere?

pesterhazy18:01:41

ah didn't think of looking at maven

magomimmo19:01:36

@pesterhazy: IMHO not all the maven scopes make sense in CLJ/CLJS. I never saw any used scope other than “test”, ”provided” and the default ”compile” if you do not specify any scope.

pesterhazy19:01:52

ah your great tutorial again

pesterhazy19:01:03

I really should go through it more thoroughly simple_smile

pesterhazy19:01:15

it's really one of the best introductions on boot out there

micha19:01:57

maybe we should put a link on the front page of the wiki, or the boot README in github?

magomimmo19:01:02

@micha: only if you think it deserves such a honour simple_smile

micha19:01:34

awesome! we (doit)

magomimmo19:01:08

yep, it starts there

juhoteperi19:01:36

Or maybe it's best to link to index? (readme.md)

magomimmo19:01:52

even better, I agree

pesterhazy19:01:04

maybe add specific links to chapter 1, 3 and 20?

pesterhazy19:01:31

1,2 3 and 20

micha19:01:07

@pesterhazy: i was thinking to put it at the top of the "Getting Started" section, perhaps?

magomimmo19:01:35

even the 16th, because it explains task-options! DSL as well

pesterhazy19:01:03

@micha, sounds good

magomimmo19:01:25

I really don’t know. I use boot because it has a great noise/signal ratio when compared with leining/cljsbuils/figwheel stuff and it’s fan too.

micha19:01:34

@richiardiandrea: 💥

richiardiandrea19:01:13

thanks @micha for the invitation!

micha19:01:29

i still have some if anyone needs one

micha19:01:41

*wants one simple_smile

richiardiandrea19:01:27

the search does not work well, do I need to put the whole link in my tweet...weird...I had to do it again

micha19:01:08

@richiardiandrea: it's not liking your github verification now

micha19:01:30

> ✖️ "arichiardi" on github failed: No server-given hint for sig=d6efe5aeabcf4fc36c8a81a74417200b19f7e0ceeadff286b23bc4f1362365a90f (code=306)

richiardiandrea19:01:47

I am about to do it

richiardiandrea19:01:05

to publish a gist 😄

micha19:01:19

yeah the multi-factor auth aspect is pretty smart i think

richiardiandrea19:01:32

can you try it out again?

micha19:01:31

@richiardiandrea: everything looks good now

meow19:01:33

I want one and I don't even know what it is but I trust @micha more than is reasonable

micha19:01:13

hahah, you can just see how you like it

meow19:01:20

please, sir, can I have moar

magomimmo19:01:14

@micha me too thanks mila

meow20:01:08

I'll flesh out my profile when I have time - super busy right now. Much thanks, Micha. 💌

richiardiandrea20:01:46

" a mystery user with no key" LOL

meow20:01:22

I'm on a borrowed laptop - does it make sense to do this pgp stuff within an account on someone else's machine

meow20:01:37

the account is mine

meow20:01:50

on Windows 10

micha20:01:31

i don't think so, because they would then have access to your secret keys

juhoteperi20:01:09

Btw. I did sign few releases today with my new GPG key which is on Keybase (my old key was 2k).

juhoteperi20:01:17

Now we just need tooling to verify packages simple_smile

micha20:01:26

what size is your new key?

micha20:01:40

is that the recommended size now?

micha20:01:52

are 2048 bit keys no longer sufficient?

juhoteperi20:01:40

Hmm, probably is

juhoteperi20:01:02

GPG faq recommends 2k and says 4k doesn't really offer any better security because dismissing returns after 2k

richiardiandrea20:01:05

they basically sync they trust model in the blockchain, amazing!

meow20:01:13

I don't currently have my own computer. 😞

meow20:01:09

and don't see that changing any time soon

richiardiandrea20:01:39

@meow: the is a way to create a gpg key pair and then backup safely the secret key and leave on the machine only the public one...of course you won't be able to sign

juhoteperi20:01:45

@meow: You should keep your private key in a usb stick

richiardiandrea20:01:13

and when you want to sign, you point to the kyring on the usb

richiardiandrea20:01:21

(which contains the private key)

juhoteperi20:01:36

Or YubiKey would probably be more user friendly if one needs to use the private key often

micha20:01:55

i ordered a YubiKey

micha20:01:09

hopefully it will be rugged enough to survive my keychain

meow20:01:16

what's a yubikey

richiardiandrea20:01:20

yep YubiKey is awesome

micha20:01:27

my physical keychain that i have my actual meatspace keys on

meow20:01:44

meatspace is rough

micha20:01:54

hard to make backups

meow20:01:59

fortunately none of it is real

micha20:01:00

of meatspace things

meow20:01:28

the singularity awaits - I'm heading for it as fast as I can

juhoteperi20:01:20

I still wonder what's the best way to setup gpg keys with Keybase (without YubiKey), should I copy the same private key to both my computers? Or have separate keys?

micha20:01:51

i have been trying to avoid making additional keys

micha20:01:03

because if a key is trusted i don't want to complicate that

micha20:01:10

by adding more untrusted keys

micha20:01:45

keybase might make this easier, but i don't fully understand the implications there

micha20:01:51

yubikey definitely seems like a huge step in the right direction though

micha20:01:58

pretty stoked to get mine

richiardiandrea20:01:17

tracking frenzy!

richiardiandrea20:01:48

from PGP background 1 key pair = 1 identity

micha20:01:57

reminds me a bit of FOAF from the 2000s

juhoteperi20:01:54

Well, YubiKey at least solves this. I'll just keep the key there.

micha20:01:18

a pgp device would be the ideal thing i guess

micha20:01:26

no keys even in memory

juhoteperi20:01:52

Btw. I wonder how necessary it is to provide support for using keybase command for signing, the private key is also usable from gpg?

micha20:01:37

i didn't realize that

richiardiandrea20:01:00

I am using gpg commands, it was choice 1 when I did keybase login

juhoteperi20:01:14

I will still check what keybase says when I log in with my laptop without manually copying the key

richiardiandrea20:01:35

what I think they do it to store your (encrypted) private key for using it with keybase if you choose option 2

richiardiandrea20:01:06

about multi device, let me fetch a link for you

juhoteperi20:01:24

Yeah I wonder if one can encrypt files with keybase program if one stored the private key on keybase

richiardiandrea20:01:50

about the last question, in PGP encrypting is done using the (public) key of the recipient

richiardiandrea20:01:11

which uses his/her private key to decrypt

richiardiandrea20:01:33

so it should encrypt for you even w/o private key

richiardiandrea20:01:24

this is also a very nice overview of their trust model -> https://keybase.io/docs/tracking

juhoteperi22:01:35

@podviaznikov: Should we have separate perun channel?

juhoteperi22:01:43

^ @martinklepsch

martinklepsch22:01:54

@juhoteperi: sure

podviaznikov22:01:22

sounds good to me. Create one