This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
I have a symlink to a bb script in ~/bin, and there’s a bb.edn next to target bb file. When I run via symlink, deps are not picked up. When I run via direct invocation, it works. I guess this is known behaviour? Would be nice if that worked.
Basically what I would like is to have the script in the path, but not the bb.edn file. How do you guys solve this?
Yeah I think it should but then again… it’s either or, and you dont want to break other folks stuff now.
Not sure. I always expect the worst.
Hmm, yea, maybe it wouldnt break. Maybe someone has a bb.edn in it’s bin folder with ALL dependencies ever needed by all their scripts.. I’ts a bit constructed though.
I expect no breakage though, it seems highly unlikely that someone would want to use a local bb.edn if the script points elsewhere
Should I open an issue for people to comment on?
For the moment, I’ll probably just add a wrapper in .zshrc
+1, I like to symlink my scripts into ~/bin, too 😅
I was hoping to get counted twice 🙃
it would also be worth checking what Node.js does: Node.js respects an adjacent package.json
symlink stuff has been merged, you can try it out with:
bash <(curl ) --dev-build --dir /tmp
This will install to /tmp?
just to not mess with your "official" install, but feel free to install it elsewhere of course
checked, and works! Awesome 🙂
didn't completely follow this im a noob but declaring dependencies in the script could be a potential solution? https://clojurians.slack.com/archives/CLX41ASCS/p1706662987274729