-
Notifications
You must be signed in to change notification settings - Fork 371
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
Set new GOPATH env var to github actions #491
Set new GOPATH env var to github actions #491
Conversation
Codecov Report
@@ Coverage Diff @@
## master #491 +/- ##
=======================================
Coverage 56.47% 56.47%
=======================================
Files 19 19
Lines 926 926
=======================================
Hits 523 523
Misses 350 350
Partials 53 53 Continue to review full report at Codecov.
|
Could $() work instead of backticks? |
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.
Shouldn't we add the export ...
to all commands involving some go tools? For example, go mod download
will currently use the system go installation, correct?
@ahmetb |
It is not necessary, that |
Is there a way to augment PATH for all steps? Maybe go path is always at $HOME/go/bin just like the default. |
@ahmetb |
@alonyb that looks perfect tbh and makes the steps easier. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, alonyb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
set -euo pipefail | ||
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)" | ||
echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin" | ||
- name: Add GOPATH |
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.
This name seems wrong to me.
GOPATH
is already set but we're adding its bin to PATH
.
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.
Yeah the name could be better like Add GOPATH/bin to PATH.
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.
sent #493, let me know what you think.
This fixes the old way to set GOPATH to PATH.
This way is used by Minikube too.
I tested it and it works perfectly. logs