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
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
Also, to interact locally, use
sam local start-apiCould you share your project so that I can see what exactly happens there?
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 @karol.wojcik, thank you very much for your time and support
here is my repo:
I’ll look into this in 2-3 hours
Thank you very much
@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.
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!
You're very welcome! I'm always eager to help 🙂 All the best!
sorry if it’s a silly question, I’m very new to babashka and holy-lambda