https://github.com/abitofhelp/bazel_go
This repository contains a Go application that can be built using Go buiid or Bazel. In either case, the go.mod is the source of truth for dependencies.
https://github.com/abitofhelp/bazel_go
bazel go golang monorepo
Last synced: 2 months ago
JSON representation
This repository contains a Go application that can be built using Go buiid or Bazel. In either case, the go.mod is the source of truth for dependencies.
- Host: GitHub
- URL: https://github.com/abitofhelp/bazel_go
- Owner: abitofhelp
- License: mit
- Created: 2023-11-17T01:21:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-18T03:38:03.000Z (over 1 year ago)
- Last Synced: 2024-04-24T03:21:27.266Z (about 1 year ago)
- Topics: bazel, go, golang, monorepo
- Language: Starlark
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# bazel_go
This repository contains a Go application that can be built using 'go build' or Bazel.
The targets can be built using 'go build' or Bazel.
The source of truth for dependencies is the go.mod file.
The Makefile contains many queries and commands for using the Go's native tooling and Bazel commands.## Valid Bazel Labels
* //:gazelle
* //:gazelle-runner
* //cmd:cmd
* //cmd:cmd_lib
* //cmd:cmd_test
* //cmd:gazelle
* //cmd:gazelle-runner
* //cmd/vendor/github.com/davecgh/go-spew/spew:spew
* //cmd/vendor/github.com/pmezard/go-difflib/difflib:difflib
* //cmd/vendor/github.com/stretchr/testify/assert:assert
* //cmd/vendor/gopkg.in/yaml.v3:yaml_v3## To Change Go's Version
Execute the set_golang_version command in the Makefile.