-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps from nbb.edn are not in classpath when called by node from a bin script #297
Comments
Probably related to #281 |
Ah, missed that. Thanks for the pointer |
I'm open to a PR around this and #281 or I'll probably look into this sometime in the next weeks. |
For this issue, local-nbb-edn is looking for |
Yes but that might not be the only place that needs a little change. Btw, another way to solve this problem is to make an "uberscript" which you can do with the bundle command: https://github.com/babashka/nbb/tree/main/doc/bundle |
Should work in 1.2.166 (building on CI right now) |
Need to fix one more thing, the |
Thanks! ❤️ 🕺 Simpler solution than I was thinking of and works great with nbb-logseq. Released a new nbb-logseq version for this |
Note that the newest nbb version is v1.2.169 |
Hi @borkdude. Encountered this while doing something with nbb-logseq but this effect nbb users as well. Cheers
version
1.1.157
platform
osx 12.0.1 and node 16.13.1
problem
My problem is similar to #270 except I'm invoking node as a bin executable instead of in the current project directory. I encountered this while trying to turn this nbb-logseq script into an executable and following the directions from https://github.com/babashka/nbb/tree/b3e2418011e205559edad4677b6e26ddd66c74ea/doc/publish .
I don't have a great workaround for this except to hardcode
.nbb/cache/X/nbb-deps
directories in executables which seems brittle.My initial use case is to globally install scripts. If this is fixed, I think it also enables nbb packages to be published with nbb.edn and to be consumed by node users who have bb, which would be pretty awesome.
repro
https://github.com/cldwalker/nbb-deps-repro - a modified version of #270
expected behavior
I expected to see the script load the nbb deps successfully
The text was updated successfully, but these errors were encountered: