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
cmd/go: 'no such tool "api"' when running 'go tool api' from downloaded tarball #37424
Comments
As far as I can tell |
Hello Ian,
I had simply used curl -sLO
https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz
I will recreate my VM later this week and see if I can recreate it once
more (and confirm nothing else weird has happened, but so far can't
remember anything odd).
Ron
Update: confirmed same on 1.4 pkg for mac. Below it was mentioned its not in the precompiled binaries.
…On Mon, Feb 24, 2020 at 6:09 PM Ian Lance Taylor ***@***.***> wrote:
As far as I can tell go tool api exists on tip and in Go 1.13. How did
you build your Go installation?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37424?email_source=notifications&email_token=AAKTOY34WBQ3WSUT7FAHZF3RER4VZA5CNFSM4K2R4FQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM2IPPA#issuecomment-590645180>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKTOY2VS2BAJUAXTGOX5GTRER4VZANCNFSM4K2R4FQQ>
.
|
|
/cc @bcmills @jayconrod |
Thanks @ALTree , after reading #13030, it seems that removing 'api' from 'go tool' list would make sense if it's only used for internal development. I haven't dug deeper but it sounds like the recommendation was that in 1.6? I am unfamiliar with how the tools are all build/used/exposed; but happy to learn if this makes sense. |
But why remove it anyway? It doesn't make sense to ship a binary (#13030), but it's still used for building and releasing Go itself. I checked the versions of Go I have installed (a mix dating back to 1.10): none have a binary |
If you type "go tool" it does not list 'api'. I believe in the past it was
showing, so maybe at some point it was removed and I might just be running
on stall information. I guess this be closed. I learned a little more
about how it all works, so thanks for that!
…On Fri, Feb 28, 2020 at 7:34 AM Jay Conrod ***@***.***> wrote:
go tool doesn't have an explicit list of tools: it just checks the
pkg/tool/GOOS_GOARCH/ directory.
But why remove it anyway? It doesn't make sense to ship a binary (#13030
<#13030>), but it's still used for
building and releasing Go itself.
I checked the versions of Go I have installed (a mix dating back to 1.10):
none have a binary api, so I don't think there's been any recent change
here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37424?email_source=notifications&email_token=AAKTOY27YIQ26KWLH5CA2R3RFEVINA5CNFSM4K2R4FQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENI5N5A#issuecomment-592566004>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKTOY5AH3UO2SXROCZNWPLRFEVINANCNFSM4K2R4FQQ>
.
|
|
It seems
go tool api
was removed at some point. The webpage still exists though, maybe for backward compatibility. If the later is true, should it be updated to explain why it was removed? Not sure if this is the right forum for web related updates.Tool doesn't exist in 1.13.
page exists:
The text was updated successfully, but these errors were encountered: