zaizailong commented on issue #130:
URL:
https://github.com/apache/servicecomb-mesher/issues/130#issuecomment-875616541
> mesher默认不支持华为云认证鉴权,所以需要自己维护main.go文件,在第一行加入代码
>
> ```go
> import _ "github.com/go-chassis/go-chassis-cloud/provider/huawei/engine"
> ```
使用这个module之后,build时会失败,错误信息:
`github.com/apache/servicecomb-mesher/proxy/pkg/egress/archaius imports
github.com/go-chassis/go-archaius/core: module
github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain
package github.com/go-chassis/go-archaius/core
github.com/apache/servicecomb-mesher/proxy/pkg/egress/archaius imports
github.com/go-chassis/go-archaius/sources/utils: module
github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain
package github.com/go-chassis/go-archaius/sources/utils
github.com/apache/servicecomb-mesher/proxy/pkg/egress/pilot imports
github.com/go-chassis/go-archaius/core/config-manager: module
github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain
package github.com/go-chassis/go-archaius/core/config-manager
github.com/apache/servicecomb-mesher/proxy/pkg/egress/pilot imports
github.com/go-chassis/go-archaius/core/event-system: module
github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain
package github.com/go-chassis/go-archaius/core/event-system
github.com/apache/servicecomb-mesher/proxy/resource/v1 tested by
github.com/apache/servicecomb-mesher/proxy/resource/v1.test imports
github.com/go-chassis/go-chassis/core/router/cse: module
github.com/go-chassis/go-chassis@latest found (v1.8.3), but does not contain
package github.com/go-chassis/go-chassis/core/router/cse`
最后在[官方文档](https://mesher.readthedocs.io/en/latest/development/cloud-provider.html#access-servicecomb-engine-api)找到
`import _ "github.com/huaweicse/auth/adaptor/gochassis" `
build 成功,添加完ak、sk之后成功注册上服务
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]