Skip to content
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

Installation fails if $GITLIBS are set #73

Open
kthu opened this issue Oct 10, 2023 · 0 comments
Open

Installation fails if $GITLIBS are set #73

kthu opened this issue Oct 10, 2023 · 0 comments

Comments

@kthu
Copy link

kthu commented Oct 10, 2023

As documented here, tools.gitlibs allows overriding the default ~/.gitlibs directory using an environment variable. If this variable is set, bbin will fail since it hardcodes ~/.gitlibs:

❯ echo $GITLIBS
/home/kjetil/.cache/clojure-gitlibs/

~                                                                                                                                                                                                                                           
❯ bbin install com.github.babashka/neil

Starting install...

bin   version  location                            
────  ───────  ────────────────────────────────────
neil  v0.2.62  https://github.com/babashka/neil.git

Install complete.


~                                                                                                                                                                                                                                    
❯ grep gitlib $(which neil)
(def script-root "/home/kjetil/.gitlibs/libs/com.github.babashka/neil/f597921dcbf4774d799be62d8fbbce7171b12c3f")
                                                                                                                                                                                                                                     
~                                                                                                                                                                                                                                           
❯ ls /home/kjetil/.gitlibs
ls: cannot access '/home/kjetil/.gitlibs': No such file or directory

~                                                                                                                                                                                                                                           
❯ ls /home/kjetil/.cache/clojure-gitlibs/libs/com.github.babashka/neil/f597921dcbf4774d799be62d8fbbce7171b12c3f
CHANGELOG.md  LICENSE  README.md  README.template.md  bb.edn  default.nix  deps.edn  dev  flake.lock  flake.nix  neil  neil-tests.el  neil.bat  neil.el  prelude  script  src  test  test-resources  tests-clj  tests.clj  tests_emacs.clj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant