Commit 6f0c079
authored
Makefile: run 'go mod tidy' before 'go mod vendor' (#2726)
## Changes
- Modify 'make' to first run 'go mod tidy', then 'go mod vendor'.
- Modify 'make build' to also run 'go mod tidy' before 'go mod vendor'.
## Why
It's a better sequence: 'go mod tidy' cleans up go.mod and go.sum and
'go mod vendor' populates vendor/ based on those. I also had errors when
'vendor' could not be run until 'tidy' is run.1 parent a8d51ad commit 6f0c079
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments