This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
feels like clj -X:deps prep
needs a --force
option to invalidate all the cache stuff or am I missing the options. When it prepares for some git dep and things go south, I have to delete ~/.gitlibs
manually?
https://github.com/clojure/clr.tools.deps.cli/blob/a027356ba253977ef6cfc91ba2e98c7b18717826/src/main/clojure/clojure/tools/deps/cli/api.cljc#L49 k, there is a force option indeed.. what's the proper way to discover the cli options other than looking at the source code btw?
@U013JFLRFS8 I don't think there are any help pages for -X:deps prep
That link is to the clr version (not jvm) of tools.deps. I can't immediately seem to find if the same thing exists for the jvm cli? I think this might be it:
clj -X:deps prep :action :force
Somewhat related question:
For library that does need prep and that use an :ensure
directory under a :deps/prep-lib
to indicate "prepped status", is it the library's responsibility to delete that directory in the case that the prep step fails? Or should the user just use the :force
mechanism in this case
I encountered a library recently where the :ensure
directory wasn't being cleaned up when the prep failed and I opened an issue but now I wonder if I should just have used some force mechanism instead
https://github.com/clojure/tools.deps.cli/blob/main/src/main/clojure/clojure/tools/deps/cli/api.clj#L48 https://github.com/clojure/tools.deps/blob/f2c3798cffd426ddf4031944d6bf5e6bea45ae47/src/main/clojure/clojure/tools/deps.clj#L700 The jvm version exists too. @U064UGEUQ I'm also playing with coffi, which is why I hit this question in the first place 😂
(from memory - I'm on my phone)