Skip to content

Commit

Permalink
doc: improved staticcheck README (#14)
Browse files Browse the repository at this point in the history
Highlighted how important loading order between different go_repository
versions of the same dependency is.
  • Loading branch information
heartless-clown authored Jun 13, 2022
1 parent 50be7f8 commit 82e669c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staticcheck/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ load("@com_github_sluongng_nogo_analyzer//staticcheck:deps.bzl", "staticcheck_de
staticcheck_deps()
```

`gazelle_dependencies()` may contains an outdated version of `staticcheck` so you should load `staticcheck_deps()` before `gazelle_dependencies()` in WORKSPACE to ensure that the supported version is in used.
**NOTE**: Make sure you load `staticcheck_deps()` before `gazelle_dependencies()`, as well as any other rules that use `go_repository`, because this can lead to dependency conflicts.

Note that loading `staticcheck_deps()` is completely optional, advanced users may want to manage their own staticcheck dependencies separately in their WORKSPACE file.

Expand Down

0 comments on commit 82e669c

Please sign in to comment.