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: make it easier to load custom plugins #6474

Merged
merged 2 commits into from
Jul 12, 2019
Merged

Conversation

Stebalien
Copy link
Member

  1. Allow loading from arbitrary and multiple directories.
  2. Make it possible to directly load built-in plugins that aren't in the preload list.
  3. Check the plugin loading state transitions.

1. Allow loading from arbitrary and multiple directories.
2. Make it possible to directly load built-in plugins that _aren't_ in the
preload list.
@Stebalien
Copy link
Member Author

Inspired by ipfs/go-ipfs-config#5 (comment). Loading custom plugins is currently a bit annoying.

go.mod Outdated
@@ -112,6 +112,7 @@ require (
go4.org v0.0.0-20190313082347-94abd6928b1d // indirect
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb
google.golang.org/appengine v1.4.0 // indirect
Copy link
Member

Choose a reason for hiding this comment

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

I have no idea why this dep started showing up but it is a heisen-dep, it shows up on build and disappears with tidy.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's a bug in go and I don't feel like reporting it.

Copy link
Member

Choose a reason for hiding this comment

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

Same.

@Stebalien Stebalien requested a review from Kubuxu June 28, 2019 09:37
@Stebalien Stebalien merged commit 39bb640 into master Jul 12, 2019
@Stebalien Stebalien deleted the feat/builtin-plugin branch July 12, 2019 01:55
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