chaosblade-io / chaosblade-box

chaos-platform
213 stars 96 forks source link

build arm64 chaosblade-box-agent error #144

Open hermithuang opened 1 year ago

hermithuang commented 1 year ago

使用arm服务器make或者make build_arm64都会出现以下错误。所以没法成功编译。

# github.com/litmuschaos/chaos-operator/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1 /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:74:5: not enough arguments in call to c.client.Get().Namespace(c.ns).Resource("chaosengines").Name(name).VersionedParams(&options, "github.com/litmuschaos/chaos-operator/pkg/client/clientset/versioned/scheme".ParameterCodec).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:91:5: not enough arguments in call to c.client.Get().Namespace(c.ns).Resource("chaosengines").VersionedParams(&opts, "github.com/litmuschaos/chaos-operator/pkg/client/clientset/versioned/scheme".ParameterCodec).Timeout(timeout).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:108:8: not enough arguments in call to c.client.Get().Namespace(c.ns).Resource("chaosengines").VersionedParams(&opts, "github.com/litmuschaos/chaos-operator/pkg/client/clientset/versioned/scheme".ParameterCodec).Timeout(timeout).Watch have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:118:5: not enough arguments in call to c.client.Post().Namespace(c.ns).Resource("chaosengines").Body(chaosEngine).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:131:5: not enough arguments in call to c.client.Put().Namespace(c.ns).Resource("chaosengines").Name(chaosEngine.ObjectMeta.Name).Body(chaosEngine).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:147:5: not enough arguments in call to c.client.Put().Namespace(c.ns).Resource("chaosengines").Name(chaosEngine.ObjectMeta.Name).SubResource("status").Body(chaosEngine).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:159:5: not enough arguments in call to c.client.Delete().Namespace(c.ns).Resource("chaosengines").Name(name).Body(options).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:175:5: not enough arguments in call to c.client.Delete().Namespace(c.ns).Resource("chaosengines").VersionedParams(&listOptions, "github.com/litmuschaos/chaos-operator/pkg/client/clientset/versioned/scheme".ParameterCodec).Timeout(timeout).Body(options).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosengine.go:188:5: not enough arguments in call to c.client.Patch(pt).Namespace(c.ns).Resource("chaosengines").SubResource(subresources...).Name(name).Body(data).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosexperiment.go:74:5: not enough arguments in call to c.client.Get().Namespace(c.ns).Resource("chaosexperiments").Name(name).VersionedParams(&options, "github.com/litmuschaos/chaos-operator/pkg/client/clientset/versioned/scheme".ParameterCodec).Do have () want (context.Context) /root/go/pkg/mod/github.com/litmuschaos/chaos-operator@v0.0.0-20210601045805-bab1c1c4b082/pkg/client/clientset/versioned/typed/litmuschaos/v1alpha1/chaosexperiment.go:74:5: too many errors make: *** [build_binary] Error 2 Makefile:34: recipe for target 'build_binary' failed make: *** [Makefile:45:build_arm64] 错误 2 或者能不能直接发布一下arm64版本的agent到release? 感谢!