Fork me on GitHub
#babashka
<
2022-07-09
>
aynish08:07:55

hello everyone, i'm wondering on importing babashka scripts locally, and then running a -main command straight from the command line. i have 3 scripts each with their own namespace, and i added src where why scripts live to my deps.edn :path. however when i try to run bb -m src/<project-name>/main.clj i get an errer -- could not find namespace: src?

aynish08:07:17

Aha! I figured it out, I was adding :path to deps.edn, but I should've been using bb.edn in order to get automatic additions to classpath

jmglov12:07:44

You can also add a :deps key to your bb.edn to have it use deps.edn, like so: https://book.babashka.org/#_paths_and_deps

aynish08:07:22

Thanks for quacking :)

duckie 2