Fork me on GitHub
#babashka
<
2021-07-04
>
rwstauner17:07:36

i updated that wiki page about bash equivalents to differentiate among $BASH, $0, and $BASH_SOURCE

đź‘Ť 5
cfleming22:07:07

Does anyone ever require multiple bb versions on a particular machine, or is that just not something that’s ever required in practice?

borkdude08:07:30

For me personally, I usually use one version (unless I'm testing something against the previous version)

cfleming10:07:17

Thanks, just thinking about how the bb config should work in Cursive.

đź‘Ť 3
onetom16:07:57

We are pinning the versions of most of our dependencies with Nix, so babashka might have a slightly different version in every project directory. At least that's the case with Clojure CLI versions, so it's not great that I have to pick - manually - one of those versions and use it for all projects within IntelliJ... We only had minor issues though, maybe twice over the last 1.5year, because of this manual version specification.

cfleming21:07:45

Hmm, that makes things much more complicated. I was hoping to avoid that - it dramatically complicates the dependency download and management. I think I’ll start with a single project-wide version for now, and if that is problematic then I’ll reconsider it.

borkdude21:07:53

@U0567Q30W I think it's quite safe to assume "newest" for var resolving as breakage should be rare

cfleming21:07:04

Well, it’ll be “currently installed” rather than “newest”, but that’s good to know about the breakage.

cfleming21:07:54

I managed to get the deps download working BTW, getting the deps file from github as we discussed, and downloading using tools.deps. The only problem I have with that is that the LSP script fixes the versions of bb/fs and bb/curl, which are local in the deps file. Is there any good way to find out which versions of those I should use with which version of bb?

borkdude21:07:57

@U0567Q30W those libraries are submodules of babashka, rather than part of the deps.edn / project.clj

borkdude21:07:21

a safe assumption is that bb latest always has the latest release of those libs

borkdude21:07:49

I can put some more work to make this easier perhaps

cfleming00:07:00

@U04V15CAJ Yes, but I can’t get those versions from the deps.edn file downloaded from github. The LSP script here hardcodes them: https://github.com/babashka/babashka/issues/733#issue-811939787

cfleming00:07:44

I can’t see any easy way to derive those versions.

cfleming00:07:25

For reference, what I’m doing now is: 1. The user configures the path to a bb command. 2. I invoke bb -version and parse the result to get the version string. 3. I download , clean it up in a similar way to your LSP script and manually introduce those versions.

cfleming00:07:59

Unfortunately Github isn’t smart enough to let me use .