packages folder is a folder to store multiple project,
and share the same code (such as the Health handler in the dir "shared")
bazel run //:gazelle
或
bazel run //:gazelle -- update-repos -from_file=go.mod
bazel run --verbose_failures //packages/hello-world:hello-world
bazel query 'allpaths(packages/...,@com_github_gin_gonic_gin//:go_default_library)' --output graph | dot -Tpng > dep.png
bazel run --verbose_failures //packages/hello-world/router:router_test
or
Single application test:
bazel test //packages/hello-world/...:all
All applications test:
bazel test //packages/...:all
bazel build //packages/second-app:second-app
Bin will be here:
bazel-bin/packages/second-app/second-app_/second-app