-
Notifications
You must be signed in to change notification settings - Fork 404
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
ko uses "go" as default GOROOT, causing build errors #218
Comments
Prevents ko tool from throwing "go: cannot find GOROOT directory: go" ko-build/ko#218
I think @scothis has an open issue for this, and I think @jonjohnsonjr has the most context on this issue. |
@scothis do I understand correctly that |
Unfortunately |
This issue is stale because it has been open for 90 days with no |
I believe this is resolved by #303 Please let me know if that is not the case. |
I believe I ran into the same issue using |
Yes, this is still an issue in 0.7.0 |
@sebgoa as of v0.8.0, this now prints a warning, does the "right" thing, and includes instructions for making that warning go away (by setting My intention is to remove the need for this warning before cutting v0.9.0, as described in #305 If you're still having issues in v0.8.0, let me know. |
I realised that I ran into this because the Installation section in the README makes you install 0.7.0 binary, hence I did not get the warning. I am not sure if it is intentional, so I will leave it to you to update the README to the latest 0.8 release... |
Prevents ko tool from throwing "go: cannot find GOROOT directory: go" ko-build/ko#218
Description
ko
uses"go"
as GOROOT when GOROOT is not exported in the environment, instead of defaulting to$(go env GOROOT)
. This prevents builds from happening.In the previous version, the error message was quite explicit:
"go: cannot find GOROOT directory: go"
.Now, in 0.6.0, the error is much more ambiguous:
importpath "ko://knative.dev/serving/cmd/controller" is not supported
.ko version
How to reproduce
Example, inside https://github.com/knative/serving/
$ printenv GOROOT # empty
$ export GOROOT="$(go env GOROOT)"
Temporary workaround
Add this line to your
.*shrc
file:The text was updated successfully, but these errors were encountered: