I think the plugin package seems great in principle, but I have had a
play with it with mixed results - it seems somewhat flaky as is.
It is somewhat more restrictive than it seems from the API
description. For example, the name of the plugin file is important -
if you rename it, it won't work. As things are currently, you can't
even load a plugin from an absolute path (issue 17155). I don't think
the name of the file should matter at all when loading the plugin.
You don't seem to be able load a plugin which has the same last element
as one that's already loaded even if it's at a different package path,
in contrast to the usual Go rules (you get a panic - issue 17579).
I think that as with the usual Go rules, the package path should be the
thing that counts. In fact, I think it would probably be best if the
plugin root counted as a unique package every time.
You can get mixed versions of the same package when a plugin
uses a package that's already used by the plugin loader.
I mentioned this to Dave Crawshaw, but I raised an issue too:
issue 17578
I love the idea but I'd really like to see this made a little more
bulletproof.
cheers,
rog.
> --
> You received this message because you are subscribed to the Google Groups "golang-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-dev+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.