-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
x/tools/cmd/present: doesn't work with go in git master (1.16) #43459
Comments
/cc @rsc |
Workaround is to invoke it with |
@mikijov -- thank you for that work-around! i think part of my issue is that go 1.16 doesn't place the source for package in an easy to find location. for example, when i use so this patch is meant to simplify things by embedding all of the static files. |
EDIT: The restriction is any package in |
I understand. So should I simply close this PR and the related issues? |
The PR/CL maybe, but I wouldn't personally be closing the issues as you're still getting them. This is certainly still an issue; it's just that the fix can't be the |
FWIW, my original reasoning here was wrong (sorry 😦); |
I updated from golang v1.14 to 1.16 and thought things will work the same (or better), but this is sad exception. Before it was working perfectly, now by default it fails miserably and one need to search internet and only on internal bugtracker it's possible to find explanation what's happening. How can this change/workaround not be explained in the present docs? Sorry for my tone, but such user unfriendliness is incredible. What worked for me was |
Provide a better suggestion for how to fix the error when static files cannot be loaded due to installing and running in module aware mode. See: golang/go#43459
Provide a better suggestion for how to fix the error when static files cannot be loaded due to installing and running in module aware mode. See: golang/go#43459
Instead of using |
Change https://golang.org/cl/356290 mentions this issue: |
What version of Go are you using (
go version
)?go 1.16
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I installed the present tool using go get:
That error occurs because go didn't place the source for the present tool in my $GOPATH.
What did you expect to see?
What did you see instead?
I believe the right thing to do is to embed the static assets and templates in the present tool. I submitted a PR that appears to work at:
golang/tools#264
The text was updated successfully, but these errors were encountered: