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

Load plugins on darwin/macOS #6439

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Conversation

fd
Copy link
Contributor

@fd fd commented Jun 12, 2019

Previously plugins were only loaded on linux. Darwin also supports plugins. The build constraint matches that of the standard library plugin package (see).

Note: The plugin package requires cgo. So builds for darwin should be build on darwin to support plugins.

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Thanks! IIRC, macos wasn't supported when we first added support but this will be nice to have.

@@ -1,4 +1,5 @@
// +build !noplugin
// +build linux,cgo darwin,cgo
Copy link
Member

Choose a reason for hiding this comment

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

Plugins shouldn't require cgo, right?

@Stebalien Stebalien dismissed their stale review June 12, 2019 16:38

Oh, it does require CGO. That could explain a few things...

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.

2 participants