Skip to content

Commit 07cb3fe

Browse files
committed
make tidy commands follow 1.17 specs
1 parent 4a54fbf commit 07cb3fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
before:
1616
hooks:
1717
- go mod download
18-
- go mod tidy
18+
- go mod tidy -compat=1.17
1919
builds:
2020
-
2121
ldflags:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ replace github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2
700700
Be aware that even after you add a `replace` directive, `go mod graph` will still show the old dependency version.
701701
You can verify the new version is actually used via the `go list` command:
702702
```shell
703-
$ go mod tidy
703+
$ go mod tidy -compat=1.17
704704
$ go list -deps | grep github.com/gogo/protobuf
705705
github.com/gogo/protobuf v1.2.1 => github.com/gogo/protobuf v1.3.2
706706
```

0 commit comments

Comments
 (0)