ci: ensure build-distros uses the same go.mod file as normal builds

When running 'make tools' the go command indirectly edits both the
go.mod and go.sum files in ways that can cause the later build of consul
itself to build with slightly different dependencies than it normally
would.
This commit is contained in:
R.B. Boyer 2019-09-23 11:08:53 -05:00 committed by R.B. Boyer
parent 7736be1b5c
commit e512378118
1 changed files with 4 additions and 1 deletions

View File

@ -146,7 +146,10 @@ jobs:
resource_class: large
steps:
- checkout
- run: make tools
- run: |
make tools
# restore any go.{mod,sum} files that were updated indirectly
git reset --hard HEAD
- run: ./build-support/scripts/build-local.sh
# save dev build to CircleCI