This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-23
Channels
- # adventofcode (135)
- # announcements (9)
- # babashka (27)
- # beginners (97)
- # bristol-clojurians (8)
- # calva (7)
- # chlorine-clover (1)
- # cider (3)
- # clara (16)
- # clj-kondo (9)
- # cljdoc (137)
- # clojars (4)
- # clojure (110)
- # clojure-europe (118)
- # clojure-taiwan (8)
- # clojure-uk (19)
- # clojurescript (30)
- # conjure (6)
- # cryogen (32)
- # datomic (11)
- # depstar (1)
- # duct (4)
- # emacs (6)
- # fulcro (73)
- # graalvm (9)
- # keechma (7)
- # leiningen (16)
- # luminus (1)
- # malli (35)
- # meander (3)
- # off-topic (45)
- # pathom (1)
- # pedestal (2)
- # re-frame (3)
- # reagent (31)
- # reitit (2)
- # reveal (17)
- # shadow-cljs (34)
- # tools-deps (11)
- # xtdb (14)
Hey folks, before I open an issue, has anyone else encountered this when using bb v0.2.5
?
19:35 $ bb
Babashka v0.2.5 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[babashka.curl])
nil
user=> (curl/get "")
Segmentation fault (core dumped)
The backtrace looks like:
(gdb) bt
#0 0x00007ffff4c5496e in nss_getline (line=0x7ffff5a004a0 "passwd: compat systemd") at ../include/ctype.h:41
#1 nss_parse_file (fname=0x7ffff4cc75b7 "/etc/nsswitch.conf") at nsswitch.c:584
#2 __GI___nss_database_lookup2 (database=database@entry=0x7ffff7f9904f "passwd_compat", alternate_name=alternate_name@entry=0x0,
defconfig=defconfig@entry=0x7ffff7f99000 "nis", ni=ni@entry=0x7ffff7f9b390 <ni>) at nsswitch.c:127
#3 0x00007ffff7f93740 in init_nss_interface () at nss_compat/compat-pwd.c:94
#4 0x00007ffff7f956b5 in _nss_compat_getpwuid_r (uid=1000, pwd=0x48d9560, buffer=0x48ee8d0 "\250\061\215\004", buflen=1024, errnop=0x48db848)
at nss_compat/compat-pwd.c:1064
#5 0x000000000221dcda in getpwuid_r ()
#6 0x000000000221dab4 in getpwuid ()
#7 0x000000000095e5f2 in ?? ()
...
Thanks!It likely was the statically compiled one, I'll try again otherwise and see what happens. Thanks for the suggestion!
For Reasons(TM) I wanted to have bb be part of my circle ci environment.
Of course, I’m stuck on how to install bb in circle.
Yes, it’s most likely me, but any help on how to make bb
available during my circle jobs would be really appreciated.
- run:
name: Install babashka
command: |
curl -L --output bb.zip
unzip bb.zip
chmod a+x bb
@slipset babashka also has an install script: https://raw.githubusercontent.com/borkdude/babashka/master/install It supports a --version argument if you want to lock the version
That’s what I tried first, but it failed on circle. Maybe /tmp is not available on circle?
makes sense. in clj-kondo that is configurable too: https://github.com/borkdude/clj-kondo/blob/0d31f63e40f220dff88670335ad639d39647314c/script/install-clj-kondo#L18 should probably copy that
sorry - I need to clarify, you can write to tmp, but you also instruct circle to persist paths in cache and restore it
here's how we're caching maven deps: https://github.com/nomnom-insights/nomnom.bunnicula/blob/master/.circleci/config.yml#L23-L35 - similar mechanism works for anything
@slipset I now added the --download-dir
option to the script:
https://raw.githubusercontent.com/borkdude/babashka/master/install
E.g.:
./install --dir . --version 0.2.5 --download-dir .
should workMy first bb script https://github.com/slipset/cautious-engine/blob/main/.circleci/maybe-deploy.bb
And 🙂
#!/bin/bash -eo pipefail
bash <(curl -s ) --dir . --download-dir .
Downloading to .
Successfully installed bb in ..
CircleCI received exit code 0
@slipset ha, we have exactly the same script in bash because Circle cannot do conditional step runs
@lukaszkorecki so do we 🙂