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

Fix memory plugin build #2

Merged
merged 2 commits into from
May 25, 2020

Conversation

adrianlzt
Copy link
Contributor

easyjson does not work with main packages. Workaround changing the
package name as suggested in mailru/easyjson#236

Some code has been moved from skydive to graffity: common.Getter

Clean and update gomod:
k8s deps should be added with replace, kubernetes/kubernetes#79384
Same problem with networkservicemesh
viper is not being used
add skydive as dep, not local replace

Once compiled it fails to run with skydive because problems with the Go
plugin framework.
The error is: plugin was built with a different version of package golang.org/x/sys/unix

golang/go#20481
golang/go#27751

Tested adding to the skydive.yml config file:
plugin:
plugins_dir: /home/adrian/go/src/github.com/skydive-project/skydive-plugins/memory
topology:
probes: memory

easyjson does not work with main packages. Workaround changing the
package name as suggested in mailru/easyjson#236

Some code has been moved from skydive to graffity: common.Getter

Clean and update gomod:
k8s deps should be added with replace, kubernetes/kubernetes#79384
Same problem with networkservicemesh
viper is not being used
add skydive as dep, not local replace

Once compiled it fails to run with skydive because problems with the Go
plugin framework.
The error is: plugin was built with a different version of package golang.org/x/sys/unix

golang/go#20481
golang/go#27751

Tested adding to the skydive.yml config file:
plugin:
  plugins_dir: /home/adrian/go/src/github.com/skydive-project/skydive-plugins/memory
  topology:
    probes: memory
@safchain
Copy link
Contributor

Thanks for the fix, merging it as it is, we will adress the dep issue later

@safchain safchain merged commit 069924d into skydive-project:master May 25, 2020
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