-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/go/{packages/packagestest,expect}: deprecate, tag, and delete #70229
Comments
Change https://go.dev/cl/625919 mentions this issue: |
Change https://go.dev/cl/625918 mentions this issue: |
Change https://go.dev/cl/625920 mentions this issue: |
Change https://go.dev/cl/625921 mentions this issue: |
Almost no-one outside x/tools uses it, so we'd like to evolve it for our needs, and tag and delete the public package. Updates golang/go#70229 Change-Id: I77c7923881efdf772a1ad53134483ad0078c941d Reviewed-on: https://go-review.googlesource.com/c/tools/+/625918 Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
The only remaining uses of go/expect are from packagestest. Updates golang/go#70229 Change-Id: I5a8c835b761381747fbd3f936d261ed773b536e3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/625919 Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This seems like an easy decision to me. Essentially nobody is using these packages, and yet they have a large and restrictive API surface area, which is tightly coupled to our tests. Moving these to internal will reduce friction at essentially no cost. I'd argue that if folks want to use these packages, they are better off forking in any case, for the same reasons. |
Also, update all imports outside of that package. Updates golang/go#70229 Change-Id: I8b08f892ec86d560c0406319c2954eb9912d78ad Reviewed-on: https://go-review.googlesource.com/c/tools/+/625920 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
Updates golang/go#70229 Change-Id: I831fe290b8e5ec9d1010e7b9d569543e5c5b2cec Reviewed-on: https://go-review.googlesource.com/c/tools/+/625921 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Almost no-one outside x/tools uses it, so we'd like to evolve it for our needs, and tag and delete the public package. Updates golang/go#70229 Change-Id: I77c7923881efdf772a1ad53134483ad0078c941d Reviewed-on: https://go-review.googlesource.com/c/tools/+/625918 Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
The only remaining uses of go/expect are from packagestest. Updates golang/go#70229 Change-Id: I5a8c835b761381747fbd3f936d261ed773b536e3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/625919 Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Also, update all imports outside of that package. Updates golang/go#70229 Change-Id: I8b08f892ec86d560c0406319c2954eb9912d78ad Reviewed-on: https://go-review.googlesource.com/c/tools/+/625920 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
Updates golang/go#70229 Change-Id: I831fe290b8e5ec9d1010e7b9d569543e5c5b2cec Reviewed-on: https://go-review.googlesource.com/c/tools/+/625921 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This proposal has been added to the active column of the proposals project |
Based on the discussion above, this proposal seems like a likely accept. The proposal is to fork the golang.org/x/tools/go/packages/packagestest and golang.org/x/tools/go/expect packages to an internal subtree, and then to tag and delete the public packages using the same process as #59676. |
No change in consensus, so accepted. 🎉 The proposal is to fork the golang.org/x/tools/go/packages/packagestest and golang.org/x/tools/go/expect packages to an internal subtree, and then to tag and delete the public packages using the same process as #59676. |
Background: These packages, designed for use in tests in x/tools, were published without proper deliberation, so any changes to their public APIs must go through the proposal process. There are dozens of improvements we (in x/tools) would like to have made that are simply too costly as a result. However, these packages are almost never used outside x/tools. Of the couple dozen imports reported by pkg.go.dev, nearly all are in repos that are forks of x/tools. The only real one is is k8s.io.
Proposal: We propose to fork these packages to an internal subtree, and then to tag and delete the public packages using the same process as #59676.
The text was updated successfully, but these errors were encountered: