Skip to content

ci: avoid to modify go.mod file#16842

Merged
kuisathaverat merged 7 commits intoelastic:masterfrom
kuisathaverat:fix/make-check
Mar 6, 2020
Merged

ci: avoid to modify go.mod file#16842
kuisathaverat merged 7 commits intoelastic:masterfrom
kuisathaverat:fix/make-check

Conversation

@kuisathaverat
Copy link
Copy Markdown
Contributor

What does this PR do?

disable modules before to install govendor

Why is it important?

go get modify the go.mod file so it breaks the make check target.

Related issues

Copy link
Copy Markdown
Member

@v1v v1v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat

@mikemadden42
Copy link
Copy Markdown
Contributor

I wonder if we need govendor at all since we've moved to Go modules in master and 7.x.

If we still need govendor, this fix looks correct though.

@kvch recommended just deleting the entire go get line.

@kuisathaverat
Copy link
Copy Markdown
Contributor Author

there are no traces of govendor in logs, but there are some make target that were not executed

@urso
Copy link
Copy Markdown

urso commented Mar 5, 2020

we should not require govendor anymore. If it is still somewhere in the makefiles/scripts, then this might be an oversight. Go modules is a complete replacement.

@kuisathaverat kuisathaverat merged commit 85f5d70 into elastic:master Mar 6, 2020
@kuisathaverat kuisathaverat deleted the fix/make-check branch March 6, 2020 11:41
v1v pushed a commit to v1v/beats that referenced this pull request Oct 16, 2020
* fix: avoid to modify go.mod file

* test: do we need govendor?

* fix: disable modules also when install mage

* Update .ci/scripts/install-tools.bat

* remove govendor code

* Update .ci/scripts/install-tools.bat
@v1v v1v mentioned this pull request Oct 16, 2020
v1v added a commit that referenced this pull request Oct 30, 2020
* cherry-pick aad07ad
* Add stages to Jenkins pipeline (#14484)
* ci: avoid to modify go.mod file (#16842)
* Ensure install scripts only install if needed (#20349)
* ci: fix warnings with wildcards and archive system-tests (#18695)
* ci: run test on Windows (#15570)
* [CI] fail if not possible to install python3 (#19164)
* [CI] lint stage doesn't produce test reports (#21888)
* [CI] Add stage name in the step (#21887)
* [CI] kind setup fails sometimes (#21857)
* [CI] refactor runbld post build action (#21256)
* [CI] Archive build reasons (#21347)
* [CI] Fix runbld when workspace does not exist (#21350)
* [CI] Send slack message with build status (#21428)
* [CI] Setup git config globally (#21562)
* [CI] fix 'no matches found within 10000' (#21466)
* [CI] Change notification channel (#21559)
* [CI] Support skip-ci label (#21377)
* [BUILD][CI] fetch dependencies with retry (#21614)
* Disable x-pack/metricbeat in linux since build is broken #21962
* Disable tests for windows in auditbeat. See #21958
* Disable integration testing for libbeat. See #21959
* Disable integration testing for metricbeat. See #21961
* Disable windows build for auditbeat. See #21958
* Disable build for libbeat. See #21959
* Disable build for metricbeat. See #21961
* Disable windows build for metricbeat. See #22257
* Disable build for x-pack/metricbeat. See #21962
* Disable windows build for x-pack/winlogbeat. See #22263
* Disable windows build for x-pack/filebeat. See #21963
* integration-tests-environment is not available for winlogbeat. see #22265
* integration-tests-environment is not available for packetbeat. see #22266
* Build not available for x-pack/metricbeats in 6.8. See #22269
* Cherry-pick 96c60d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants