fix: mage installation with go1.18#33083
Merged
cmacknz merged 5 commits intoelastic:7.17from Sep 14, 2022
Merged
Conversation
|
This pull request doesn't have a |
Contributor
cmacknz
approved these changes
Sep 14, 2022
Member
cmacknz
left a comment
There was a problem hiding this comment.
Thanks! I noticed this errors in the logs but never got around to figuring out why they were there.
Member
Author
|
I'm still fixing it ... $ docker run --rm -ti -v `pwd`:/src/github.com/elastic/beats -w /src/github.com/elastic/beats ubuntu
$ apt-get update ; apt-get install -y curl make build-essential ; HOME=/src ./dev-tools/run_with_go_ver make test-mage
+ /src/bin/gvm 1.17.10
+ cut -d ' ' -f 2
+ tr -d '\"'
++ /src/bin/gvm 1.17.10
+ eval 'export GOROOT="/src/.gvm/versions/go1.17.10.linux.amd64"
export PATH="/src/.gvm/versions/go1.17.10.linux.amd64/bin:$PATH"'
++ export GOROOT=/src/.gvm/versions/go1.17.10.linux.amd64
++ GOROOT=/src/.gvm/versions/go1.17.10.linux.amd64
++ export PATH=/src/.gvm/versions/go1.17.10.linux.amd64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/src/.gvm/versions/go1.17.10.linux.amd64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
...
## Functions
beat_doc_branch = {{ beat_doc_branch }}
beat_version = {{ beat_version }}
commit = {{ commit }}
date = {{ date }}
elastic_beats_dir = {{ elastic_beats_dir }}
go_version = {{ go_version }}
repo.RootImportPath = {{ repo.RootImportPath }}
repo.CanonicalRootImportPath = {{ repo.CanonicalRootImportPath }}
repo.RootDir = {{ repo.RootDir }} |
v1v
commented
Sep 14, 2022
Comment on lines
+91
to
+93
| dir("${BASE_DIR}") { | ||
| sh "HOME=${WORKSPACE} GO_VERSION=${GO_VERSION} ./dev-tools/run_with_go_ver make test-mage" | ||
| } |
Member
Author
|
@cmacknz , I think this will be ready to be merged, somehow my initial thoughts were about the GOPATH, but the issue was related to |
cmacknz
approved these changes
Sep 14, 2022
Member
Author
|
@Mergifyio backport main |
Member
Author
|
@Mergifyio backport 8.5 |
Member
Author
|
@Mergifyio backport 8.4 |
Contributor
✅ Backports have been createdDetails
|
Contributor
❌ No backport have been createdDetails
|
mergify bot
pushed a commit
that referenced
this pull request
Sep 21, 2022
* path for the mage with go1.18 has changed * ci: test the command in the CI pipeline * ci: set HOME * new make goal to validate the mage installation * unrequired path when using go install (cherry picked from commit 5385fd2) # Conflicts: # Jenkinsfile
mergify bot
pushed a commit
that referenced
this pull request
Sep 21, 2022
* path for the mage with go1.18 has changed * ci: test the command in the CI pipeline * ci: set HOME * new make goal to validate the mage installation * unrequired path when using go install (cherry picked from commit 5385fd2) # Conflicts: # Jenkinsfile
Contributor
✅ Backports have been createdDetails
|
v1v
pushed a commit
that referenced
this pull request
Sep 21, 2022
v1v
pushed a commit
that referenced
this pull request
Sep 21, 2022
Member
Author
|
@Mergifyio backport 8.5 |
mergify bot
pushed a commit
that referenced
this pull request
Sep 21, 2022
* path for the mage with go1.18 has changed * ci: test the command in the CI pipeline * ci: set HOME * new make goal to validate the mage installation * unrequired path when using go install (cherry picked from commit 5385fd2) # Conflicts: # Jenkinsfile
Contributor
✅ Backports have been createdDetails
|
michalpristas
added a commit
that referenced
this pull request
Nov 9, 2022
chrisberkhout
pushed a commit
that referenced
this pull request
Jun 1, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this PR do?
go1.18 changed where the packages are installed when using
go installRun the same command in the CI pipeline
Why is it important?
The UR for 7.17 is broken for the last 5 days.
Test
Additionally, I tested on docker, to be the more platform agnostic as possible, see #33083 (comment)
Issues
Caused by #32693