Skip to content

Commit d73e164

Browse files
author
Eric Van Norman
authored
Negate Golang 1.16 go mod download affecting go.sum (#382)
1 parent 17213fe commit d73e164

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

files/common/Makefile.common.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ tidy-go:
7373

7474
mod-download-go:
7575
@-GOFLAGS="-mod=readonly" go mod download
76+
# go mod tidy is needed with Golang 1.16+ as go mod download affects go.sum
77+
# https://github.com/golang/go/issues/43994
78+
@go mod tidy
79+
80+
list-all-go:
81+
@-GOFLAGS="-mod=readonly" go list -deps -test
7682

7783
format-go: tidy-go
7884
@${FINDFILES} -name '*.go' \( ! \( -name '*.gen.go' -o -name '*.pb.go' \) \) -print0 | ${XARGS} common/scripts/format_go.sh

0 commit comments

Comments
 (0)