holy-lambda

rastandy 2022-03-23T08:49:25.041399Z

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 Kabir 2022-03-23T09:42:34.615729Z

Did you try the example project? It was helpful for me to get that running before I attempted the same on my own code: https://github.com/FieryCod/holy-lambda-ring-adapter/tree/master/examples/native

Norman Kabir 2022-03-23T09:43:07.019019Z

Also, to interact locally, use

sam local start-api

Karol Wójcik 2022-03-23T11:25:01.799179Z

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

Karol Wójcik 2022-03-23T11:42:13.236789Z

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:

rastandy 2022-03-23T13:30:13.929359Z

Dear @karol.wojcik, thank you very much for your time and support

rastandy 2022-03-23T13:30:18.378189Z

here is my repo:

Karol Wójcik 2022-03-23T13:42:09.314579Z

I’ll look into this in 2-3 hours

rastandy 2022-03-23T13:45:46.733729Z

Thank you very much

Karol Wójcik 2022-03-23T17:56:05.324079Z

@rastandy 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.

rastandy 2022-03-24T05:59:18.383329Z

Dear @karol.wojcik 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ójcik 2022-03-24T06:12:59.059029Z

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

🙂 1
rastandy 2022-03-23T09:00:55.388929Z

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