Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
fix(build): fix gazelle commands to use the correct deps.bzl file
Browse files Browse the repository at this point in the history
  • Loading branch information
bhops committed Oct 1, 2021
1 parent c377902 commit fa7395a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ http_archive(
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("//bazel/go:deps.bzl", "go_dependencies")

# gazelle:repository_macro deps.bzl%go_dependencies
# gazelle:repository_macro bazel/go/deps.bzl%go_dependencies
go_dependencies()

gazelle_dependencies()
2 changes: 1 addition & 1 deletion docs/build/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ go mod tidy
You can then update the dependencies tracked in bazel by running the following command:

```bash
bazel run //:gazelle -- update-repos -build_external=vendored -from_file=go.mod -to_macro=deps.bzl%go_dependencies
bazel run //:gazelle -- update-repos -build_external=vendored -from_file=go.mod -to_macro=bazel/go/deps.bzl%go_dependencies
```

This will re-generate the `deps.bzl` file that defines all of the golang dependencies used in the project.

0 comments on commit fa7395a

Please sign in to comment.