-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump golangci-lint from 1.51.1 to 1.55.1 (#3177)
- Loading branch information
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,7 +192,8 @@ go generate -x ./... # hunts for //go:generate comments and runs them | |
|
||
The Trillian codebase uses go.mod to declare fixed versions of its dependencies. | ||
With Go modules, updating a dependency simply involves running `go get`: | ||
``` | ||
|
||
```bash | ||
go get package/path # Fetch the latest published version | ||
go get package/[email protected] # Fetch a specific published version | ||
go get package/path@HEAD # Fetch the latest commit | ||
|
@@ -203,7 +204,8 @@ Be warned however, that this may undo any selected versions that resolve issues | |
|
||
While running `go build` and `go test`, go will add any ambiguous transitive dependencies to `go.mod` | ||
To clean these up run: | ||
``` | ||
|
||
```bash | ||
go mod tidy | ||
``` | ||
|
||
|
@@ -213,21 +215,23 @@ The [`scripts/presubmit.sh`](scripts/presubmit.sh) script runs various tools | |
and tests over the codebase. | ||
|
||
#### Install [golangci-lint](https://github.com/golangci/golangci-lint#local-installation). | ||
|
||
```bash | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1 | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.1 | ||
``` | ||
|
||
#### Run code generation, build, test and linters | ||
|
||
```bash | ||
./scripts/presubmit.sh | ||
``` | ||
|
||
#### Or just run the linters alone | ||
|
||
```bash | ||
golangci-lint run | ||
``` | ||
|
||
|
||
## Design | ||
|
||
### Design Overview | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters