Awkward store/challenge instantation #21
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It looks like I have to pass a file path to greenlock to load custom stores/challenges.
i.e.
as opposed to:
The reason this is awkward is that the store now needs to be instantiated separately and the config for that instantiation saved into global vars.
e.g.
and the store looks like:
It's fine... just a pain to debug unless you look at the source.
Yes, there is a reason.
I didn't want to support multiple ways of doing it, and I wanted it to be possible to store the configuration as in a database.
Since you can store a module name in a database, but you can't store a function in a database, I picked the former.
What about it is hard to debug? Or how could I make that easier?
I think it currently returns an ambiguous undefined error. Then when I started looking into it, I was surprised that instantiation worked like this, I almost didn't believe it (relying on a global var cached in a module). Then I found an example store where I saw you instantiate and cache the config in the module.
Just needs an error message.