Fork me on GitHub

Hello everyone. I’m trying to add the ring/ring-codec dependency to a holy-lambda project and edit the deps.edn and bb.edn file, adding the library to the :deps key. After running bb hl:babashka:sync, nothing happens. The library is not downloaded to .holy-lambda/bb-clj-deps/ and the AWS lambda layer is not rebuilt

Norman Kabir09:03:34

Did you try the example project? It was helpful for me to get that running before I attempted the same on my own code:

Norman Kabir09:03:07

Also, to interact locally, use

sam local start-api

Karol Wójcik11:03:01

Could you share your project so that I can see what exactly happens there?

Karol Wójcik11:03:13

I cannot reproduce the problem. 1. I've created a new project via lein new holy-lambda babashka-example` 2. I've added ring-codec to bb.edn:

{:deps {io.github.FieryCod/holy-lambda-babashka-tasks
        {:git/url   ""
         :deps/root "./modules/holy-lambda-babashka-tasks"
         :sha       "aad552d90f9b87929755a13641a8e73468430ba0"}
        ring/ring-codec                {:mvn/version "1.2.0"}
        io.github.FieryCod/holy-lambda {:mvn/version "0.6.6"}}
3. I ran bb hl:babashka:sync and I can confirm the packages are there:


Dear @UJ1339K2B, thank you very much for your time and support


here is my repo:

Karol Wójcik13:03:09

I’ll look into this in 2-3 hours


Thank you very much

Karol Wójcik17:03:05

@U15D43HU7 1. How do you test your lambda? 2. > After running bb hl:babashka:sync, nothing happens. What do you mean by that. Can you list packages in .holy-lambda/bb-clj-deps/.m2 via ls -la .holy-lambda/bb-clj-deps/.m2 ? I did a dry run of your function via sam local invoke and you have a syntax issue in your code.


Dear @UJ1339K2B I deleted the stack and recreated it and everything is working now! I can’t tell what wasn’t working before. I’m really grateful for your help and time! Thank you very much!

Karol Wójcik06:03:59

You're very welcome! I'm always eager to help 🙂 All the best!

🙂 1

sorry if it’s a silly question, I’m very new to babashka and holy-lambda