-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix go get xk6 github action #2153
Conversation
+ go get is only used for adding dependencies to a Go module + this fix uses go install to install the xk6 binary (instead of go get)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please change the go get
in the all.yml
as well
Do we need to keep glide anymore? It's because the following now works:
Instead of: go get -d github.com/mh-cbon/go-bin-deb \
&& (cd "$gopath/src/github.com/mh-cbon/go-bin-deb" \
&& glide install \
&& go install)
go get -d github.com/mh-cbon/go-bin-rpm \
&& (cd "$gopath/src/github.com/mh-cbon/go-bin-rpm" \
&& glide install \
&& go install) Should we keep go getting (cd && GO111MODULE=on go get github.com/josephspurrier/goversioninfo/cmd/[email protected])
IFS=. read -a version <<< "$(echo $VERSION | sed 's:[^0-9\.]::g')"
# Need a blank versioninfo.json for the CLI overrides to work.
echo '{}' > versioninfo.json
goversioninfo -64 \
-platform-specific=true \
-charset="1200" \
-company="Load Impact AB" \
-copyright="© Load Impact AB. Licensed under AGPL." \
-description="A modern load testing tool, using Go and JavaScript" \
-icon=packaging/k6.ico \
-internal-name="k6" \
-original-name="k6.exe" \
-product-name="k6" \
-translation="0x0409" \
-ver-major="${version[0]}" \
-ver-minor="${version[1]}" \
-ver-patch="${version[2]}" \
-product-version="${VERSION#v}" I tried this with go install github.com/josephspurrier/goversioninfo/cmd/[email protected]
# this doesn't work on my mac so I can't test it
# IFS=. read -a version <<< "$(echo $VERSION | sed 's:[^0-9\.]::g')"
echo '{}' > versioninfo.json
goversioninfo -64 \
.... |
So we can test even with unreleased versions of xk6.
Just a note, I think this PR should fix the current failure in Github actions for master branch at |
I couldn't find that branch? |
Also, a suggestion: how about adding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this currently breaks CI and the others will not be relevant until we move to 1.18 to release I am for merging this as is and @inancgumus please open at least a very basic issue to actually change the rest so we don't forget it
go get
is now only being used for adding dependencies to a Go modulego install
instead to install the xk6 binary (instead ofgo get
)