-
-
Notifications
You must be signed in to change notification settings - Fork 666
Go tool compatibility
This is a list of all the capabilities of the go tool, and what they map to in the bazel world. This is both a mapping for documentation and a list of things that still need to be done.
compile packages and dependencies bazel build
remove object files bazel clean
but not really needed
show documentation for package or symbol TODO
print Go environment information Not needed?
start a bug report Not sure if we want this
run go tool fix on packages TODO
run gofmt on package sources TODO
generate Go files by processing source Custom rules
download and install packages and dependencies Download is automatic, install is not needed, but automatic dependencies belong in gazelle
compile and install packages and dependencies Not really needed
list packages bazel query
compile and run Go program bazel run
test packages bazel test
run specified go tool See section below
print Go version In theory you specified this in the config, not sure a query is needed.
run go tool vet on packages go_vet_test rule
Not sure we need this exposed
Not sure we need this exposed
Used in go_library
Used in go_library
Used in go_library
bazel cover
but there are still open questions about controlling it and exposing the results.
Not sure we need this exposed
See doc command
See fix command
Used in go_binary/go_test
Not sure we need this exposed
Not sure we need this exposed
Used in go_library
Not sure we need this exposed
TODO
See vet command