Skip to content

tnqv/bazel-examp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go project with bazel

What is bazel ? Ref: https://docs.bazel.build/versions/master/build-ref.html

  • Focus on package build
  • Important to organize package and BUILD file
  • Contain WORKSPACE and BUILD at root directory

Using go rules: https://github.com/bazelbuild/rules_go

Setup Bazel to use dependence from go.mod using bazelisk

  • Generate project with go mod

bazelisk run //:gazelle -- update-repos -from_file=go.mod

  • Build package

bazelisk build //pkg/app:app

  • Build project

bazelisk build //...

  • Run package

bazelisk run //pkg/app:app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published