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

feat: nice errors when failing to load plugins #7429

Merged
merged 1 commit into from
Aug 9, 2020

Conversation

Stebalien
Copy link
Member

partially fixes #7305

The other half is to actually build with CGO support by default.

@Stebalien Stebalien requested a review from dirkmc June 5, 2020 20:57
}

func loadPlugin(fi string) ([]iplugin.Plugin, error) {
func unixLoadPlugin(fi string) ([]iplugin.Plugin, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Before, we wouldn't try loading plugins on platforms that didn't support plugins.

Now, we try loading plugins everywhere, but return an error if we find a plugin that we can't load (either because the platform is unsupported, or because something is wrong with the plugin).

@Stebalien
Copy link
Member Author

bump @dirkmc

@Stebalien Stebalien requested a review from willscott June 10, 2020 16:43
@ipfs ipfs deleted a comment Jul 8, 2020
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

@Stebalien anything we're waiting on before merging this?

plugin/loader/load_nocgo.go Outdated Show resolved Hide resolved
@Stebalien
Copy link
Member Author

@aschmahmann it was just waiting on a review.

@aschmahmann aschmahmann merged commit 7b9bb8f into master Aug 9, 2020
@aschmahmann aschmahmann mentioned this pull request Sep 22, 2020
72 tasks
@hacdias hacdias deleted the fix/plugin-load-error branch May 9, 2023 11:00
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.

Prebuilt binary do not load plugin
2 participants