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
Cannot go get
github.com/cli/cli/v2 v2.0.0
#4192
Comments
gh is by intention not go gettable; it is not intended to be used as a library and our Go API has no guarantees of consistency or documentation. We are working on a Go SDK for extension authors to import that will extract the parts of gh we want to expose as a public API. |
Even though our project is not go-gettable for other reason (#1389), I do agree we should rename our module from |
A separate module for extension developers makes a lot of sense. Combined with #4194 having a complete solution for binary extensions would be fantastic. For example, your Additionally, for script developers maybe some command that |
Is there already another issue open on creating a go-gettable module for extension developers? I'd love to pile on a few ideas before PR #4199 closes this. For example, in addition to the ideas above, providing some mechanic to pass |
With extension support, some extensions might want to take advantage of public APIs and need to `go get github.com/cli/cli/v2@v2.0.0 but go errs:
This is apparently because go.mod needs to specify "v2" now that it has progressed to a v2 version: https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher
The text was updated successfully, but these errors were encountered: