Skip to content

Commit

Permalink
Fix go mod in apm beats update CI job (#27392)
Browse files Browse the repository at this point in the history
`go mod tidy` should be executed after custom modifications of go.mod
to avoid problems due to missing entries in go.sum.
  • Loading branch information
jsoriano authored Aug 16, 2021
1 parent 84b4cea commit d03b56f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ci/apm-beats-update.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def beatsUpdate() {
git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
go mod edit -replace github.com/elastic/beats/v7=\${GOPATH}/src/github.com/elastic/beats-local
go mod tidy
echo '{"name": "${GOPATH}/src/github.com/elastic/beats-local", "licenceType": "Elastic"}' >> \${GOPATH}/src/github.com/elastic/beats-local/dev-tools/notice/overrides.json
make update
git commit -a -m beats-update
Expand Down

0 comments on commit d03b56f

Please sign in to comment.