Fork me on GitHub
#babashka
<
2020-09-23
>
Lone Ranger17:09:10

@borkdude when I'm running the Babashka installer, will it automatically pickup v0.2.1 on new builds?

borkdude17:09:26

It isn’t release yet

Lone Ranger17:09:35

kk. I'm just trying to decide if I should be thinking about locking down versions or not in case something becomes backwards incompatible six years from now

alekcz17:09:11

@borkdude is there a template repo for a babashka pod?

borkdude17:09:00

@goomba I think we could support that in the installer script via a --version flag: https://github.com/borkdude/babashka/blob/master/install Note that clj-kondo already has this: https://github.com/borkdude/clj-kondo/blob/master/script/install-clj-kondo Feel free to contribute that change. I think we should move to flags for everything (while keeping the dir argument backwards compatible)

borkdude15:09:32

Thanks. Two questions: - Why the change for /tmp/bb instead of /usr/local/bin? - Does it still support the old way, i.e. only passing a directory name without flags?

Pradeep B15:09:31

dman, /tmp/bb was i tried that and came by mistake

borkdude15:09:48

$ ~/Downloads/install.txt /tmp
Installs latest (or specific) version of babashka. Installation directory defaults to /usr/local/bin.

borkdude15:09:57

I think what should happen is that if there's only one argument, it is interpreted as the dir. Else use flags

borkdude15:09:13

Else this will break existing users

Pradeep B15:09:13

:thinking_face:

borkdude15:09:21

You don't understand?

Pradeep B15:09:22

i got that - let me add the fix around this. I confused with ~/Downloads/install.txt /tmp

borkdude15:09:46

yeah sorry, Chrome downloads things as .txt. I don't know how to turn that off

Pradeep B16:09:20

only this specific combination need to be covered right for backward compatibility, right? How does this look now

borkdude16:09:50

I tested it and it works

borkdude17:09:05

I'll make an issue for that

borkdude17:09:44

@alekcz360 I don't know of a template, but you could take any existing project as an example: https://github.com/borkdude/babashka/blob/master/doc/libraries.md#pods General docs are here: https://github.com/babashka/babashka.pods

Lone Ranger17:09:11

w00t! I'll jump on it