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

Split the plugin-example into two binaries. #19

Closed
wants to merge 1 commit into from
Closed

Split the plugin-example into two binaries. #19

wants to merge 1 commit into from

Conversation

skx
Copy link

@skx skx commented Nov 4, 2016

This reflects actual usage, and will close #11.

This reflects actual usage, and will close #11.
HandshakeConfig: handshakeConfig,
Plugins: pluginMap,
})
}

// handshakeConfigs are used to just do a basic handshake between
// a plugin and host. If the handshake fails, a user friendly error is shown.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we supposed to remove the plugin implementations below?

@@ -26,7 +19,7 @@ func main() {
client := plugin.NewClient(&plugin.ClientConfig{
HandshakeConfig: handshakeConfig,
Plugins: pluginMap,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is a more general usage question. Do we really need these configs, especially pluginMap here? That means it needs to know what plugins are available at compile time right? Kinda destroy the whole purpose of having plugins

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the same. is this mandatory?

@mitchellh
Copy link
Contributor

Whoops, I saw #20 first (top of list :( ). Sorry. Merged that which should fix the same issue! Thanks!

@mitchellh mitchellh closed this Apr 19, 2017
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

Successfully merging this pull request may close these issues.

more examples
5 participants