Skip to content

Commit

Permalink
ci: ensure build-distros uses the same go.mod file as normal builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rboyer committed Sep 23, 2019
1 parent 5c9ece5 commit 4303f83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4303f83

Please sign in to comment.