-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Add --bb-edn or --config option to specify other bb.edn file #1110
Comments
I'd be in favor of suggested behavior above. The two use cases I have are:
|
Also see #1103 which is somewhat related to invoking tasks from another tasks file, but with merge behavior. |
That does look helpful and related but it's different enough that I don't think it address my uses cases. Since #1103 is task specific it doesn't address the executable use case. For the task use case, #1103 requires a local bb.edn in order to merge in another bb.edn. I'm looking to invoke another bb.edn from the commandline |
@cldwalker Agreed. I hope to look into this issue soon (but feel free to experiment). |
Should work now in branch The argument is macOS: https://24985-201467090-gh.circle-artifacts.com/0/release/babashka-0.7.1-SNAPSHOT-macos-amd64.tar.gz Please test! |
Co-authored-by: Bob <[email protected]>
Merged to master. |
Btw I also implemented |
You can now install a dev release: https://github.com/babashka/babashka-dev-builds |
@borkdude Tested --config and it works great for my tasks use case! I ended up not using it for the executable use case as |
I guess
which will make a You would then put |
Just a reminder that AFAIK, TL;DR: shebang should be |
Yes, I was intending to suggest replacing what @cldwalker wrote with a bash wrapper script:
|
Seems to work fine for my use case too (tested only with |
So |
Having a consistent directory that babashka installs tools/commands/executables/scripts to |
Seems this branch broke something (this code used to work in babashka 0.7.0). I have a script that is in my PATH and loads
Running the same script inside the directory that the |
@thiagokokada Could you make a small repro that works with 0.7.0 but not with master? |
@borkdude Try this one. Extract it and execute the On
On
Remember to set |
Fixed on master |
The other bb.edn (or bb.ci.edn, etc) file can live in another directory.
Relative paths in
:paths
should be resolved against the explicitly provided--config
's location.In the future we can also add
--context
for setting the directory to which we should resolve relative dirs againt, but we can default to the explicit--config
option when given, or the current working directory otherwise (like it is now).See discussion in #869
/cc @wilkerlucio @cldwalker @thiagokokada @lispyclouds
The text was updated successfully, but these errors were encountered: