Skip to content

Commit

Permalink
Add note about depending on static binaries to README.md (#734)
Browse files Browse the repository at this point in the history
[skip ci]
[ci skip]
  • Loading branch information
jayconrod authored Aug 16, 2017
1 parent b1e0670 commit d623f84
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,21 @@ You can build binaries in static linking mode using
bazel build --output_groups=static //:my_binary
```

You can depend on static binaries (e.g., for packaging) using `filegroup`:

```bzl
go_binary(
name = "foo",
srcs = ["foo.go"],
)

filegroup(
name = "foo_static",
srcs = [":foo"],
output_group = "static",
)
```

### Using the race detector

You can run tests with the race detector enabled using
Expand Down

0 comments on commit d623f84

Please sign in to comment.