caesium icon indicating copy to clipboard operation
caesium copied to clipboard

Side-effect, loading Sodium too early

Open piotr-yuxuan opened this issue 2 years ago • 2 comments

Hello! Thanks very much for this great work. For some project I've been trying to setup CI jobs that runs on GitHub Actions, and I believe that caesium trying to load sodium when loading ns makes the job fails. See an example for caesium itself analysed by cljdoc (link).

What would you think about putting these forms in a function that gets called on runtime startup, and not at compile time? https://github.com/lvh/caesium/blob/master/src/caesium/binding.clj#L720-L725

Cheers, Piotr

piotr-yuxuan avatar Apr 19 '22 15:04 piotr-yuxuan

Sure, that seems fine. Perhaps a delay?

lvh avatar Apr 22 '22 20:04 lvh

I guess I should rephrase: can you be more specific w.r.t "runtime startup"? :)

lvh avatar Apr 22 '22 20:04 lvh