Fork me on GitHub
#holy-lambda
<
2022-03-23
>
rastandy08:03:25

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: https://github.com/FieryCod/holy-lambda-ring-adapter/tree/master/examples/native

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:

rastandy13:03:13

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

rastandy13:03:18

here is my repo:

Karol Wójcik13:03:09

I’ll look into this in 2-3 hours

rastandy13:03:46

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.

rastandy05:03:18

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
rastandy09:03:55

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