-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: define command-line API for tools #18900
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
Comments
Ignoring @rsc's comment for a second, my initial thought as an external tool developer is that using the
Those two can be taken care of in the external tool, but the whole point of |
As someone who relies on and helps maintain I highly prefer to import a pure Go library in order to achieve The |
This issue came to exist because of the following exchange in #18653:
And, as this issue says:
From the discussion here so far, as far as I can tell, the answer is that nothing in So it can be closed. |
Thanks. SGTM. |
I agree that it seems like there's nothing to do - the I was keeping this issue open to see if @rsc had anything to add or comment, since he was the one who proposed opening this issue. |
As per discussion in #18653.
https://github.com/kisielk/gotool has existed for quite some time as a way for external tools to be able to resolve import paths such as
.
and./...
. See its godoc: https://godoc.org/github.com/kisielk/gotoolThis functionality is implemented in
cmd/go
but it's not exported and available to Go programs, so gotool does exactly that - it copies the source code and makes it available in an importable package.@rsc mentions that external tools should instead depend on the
go
executable:I assume
ImportPaths
would be replaceable bygo list
in most scenarios.This issue exists to figure out if the command-line tool needs any changes to accomodate for the
gotool
use case.cc @kisielk who wrote the package
cc @mdempsky @dominikh @shurcooL @davecheney @FiloSottile who use the package (aside from myself)
The text was updated successfully, but these errors were encountered: