Skip to content

Cherry-pick #19823 to 7.x: Do not update go.mod during packaging and testing#19833

Merged
kvch merged 1 commit intoelastic:7.xfrom
kvch:backport_19823_7.x
Jul 13, 2020
Merged

Cherry-pick #19823 to 7.x: Do not update go.mod during packaging and testing#19833
kvch merged 1 commit intoelastic:7.xfrom
kvch:backport_19823_7.x

Conversation

@kvch
Copy link
Copy Markdown
Contributor

@kvch kvch commented Jul 13, 2020

Cherry-pick of PR #19823 to 7.x branch. Original message:

What does this PR do?

This PR adds -mod=readonly to Golang commands.

Why is it important?

Now that vendor is no longer part of the repo, Go might accidentally update dependencies during integration testing, updating generated assets and packaging. To avoid it, I have added -mod=readonly to these commands.

This possibly affects the apm-server repo as well. So CC @elastic/apm-server

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

CC @v1v I believe this PR fixes all our problems with Golang updating reps. But as a safety measure, we should adjust the CIs as well.

@kvch kvch added [zube]: In Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels Jul 13, 2020
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jul 13, 2020
@botelastic
Copy link
Copy Markdown

botelastic bot commented Jul 13, 2020

This pull request doesn't have a Team:<team> label.

@kvch kvch merged commit 776ca35 into elastic:7.x Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Services (Deprecated) Label for the former Integrations-Services team [zube]: Done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants