Skip to content

Commit

Permalink
bzlmod.md: update style of code
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-french authored Sep 27, 2024
1 parent 6c1154a commit d1ad46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/go/core/bzlmod.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ The root module can override certain aspects of the dependency resolution perfor
[`replace` directives](https://go.dev/ref/mod#go-mod-file-replace) in `go.mod` can be used to replace particular or all versions of dependencies with other versions or entirely different modules.
```
```go
replace(
golang.org/x/net v1.2.3 => example.com/fork/net v1.4.5
golang.org/x/mod => example.com/my/mod v1.4.5
Expand Down Expand Up @@ -283,7 +283,7 @@ This will allow you to drop the `gazelle_override` tag and also makes the Go mod
Users can apply custom default directives or extra args to **all** modules, these can be added via a `go_deps.gazelle_default_attributes`. These will
disable/overwrite the [public registry overrides](https://github.com/bazelbuild/bazel-gazelle/blob/master/internal/bzlmod/default_gazelle_overrides.bzl).
```
```starlark
go_deps.gazelle_default_attributes(
build_extra_args = [
"-go_naming_convention_external=go_default_library",
Expand Down

0 comments on commit d1ad46a

Please sign in to comment.