Fork me on GitHub
#babashka
<
2021-10-21
>
Karol Wójcik11:10:22

Does babashka somehow caches the code it executes? (RESOLVED)

borkdude11:10:34

Could you use a gist for long output? It floods the channel a bit ;)

borkdude11:10:45

And no, bb never caches code

borkdude11:10:25

Try bb --force tasks

borkdude11:10:38

the classpath is cached using the normal tools deps stuff

Karol Wójcik11:10:31

--force did the trick 😄

Karol Wójcik11:10:54

Thank you @U04V15CAJ. As always fast and helpful ;)

eelke14:10:22

Dear channel, I have a question regarding https://github.com/babashka/pod-babashka-aws. I have created a https://gist.github.com/eelkevanfoeken/8bfdafcaa9d8ff08c184fab1d87fced0 that can empty and delete s3 buckets in concurrency. However, I get an exception. If I run the normal Cognitect library it does work. My suspicion is that concurrency is an issue. A sign is that if I replace pmap with map no issue arises.

borkdude14:10:07

Hi. Could you please use a github gist when posting long output?

borkdude14:10:18

It floods the channel a bit :)

eelke14:10:23

Yes, apologies

borkdude14:10:17

the error you are seeing likely has to do with this: https://github.com/cognitect-labs/aws-api/issues/15

borkdude14:10:13

This issue has come up before, it's actually always this one ;)

eelke14:10:22

Ok, I'll have a look

eelke14:10:30

thank you

borkdude14:10:12

try setting the region explicitly

borkdude14:10:57

can you let me know if this worked for you?

eelke15:10:32

Yeah, in my gist I set the region in the client. But apparently, when getting the buckets with this client, it gives back buckets in other regions as well. If I then try to list object from a bucket outside that region this error occurs. The solution is to retrieve the region by calling GetBucketLocation and add that to the list objects request

mynomoto20:10:00

Not sure if this is the best place to ask this but I thought that there was something like carve but for finding unused libraries. Is that my mind playing tricks on me?

borkdude20:10:12

I have a gist of this somewhere, just a moment

borkdude20:10:14

So what this does is scan your sources and scan your .m2 directory and then suggest which libraries you are actually using

borkdude20:10:44

So even if you don't have a deps.edn, it will suggest one for you

borkdude20:10:05

It can be tweaked slightly different, to optimize for unused dependencies

mynomoto13:10:14

Thanks, this is great!I I thought it was something that you did 👏