简体   繁体   中英

Why does bazel require me to add dependencies of the library my project is dependent on for Go?

I am working with the echo framework. Hence, my project is directly dependent on github.com/labstack/echo/v4 . Accordingly, I have added it to my go.mod and WORKSPACE file. However, bazel build fails and only works if I add the following 2 dependencies.

github.com/labstack/gommon
github.com/valyala/fasttemplate

Why is this required, and is there any way around it?

These modules are required because they are dependencies of the echo module and therefore required to build the code. See the dependencies listed in echo's go.mod file :

[...]
github.com/labstack/gommon v0.3.0
github.com/valyala/fasttemplate v1.2.1
[...]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM