]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: drop unnecessary Package arguments
authorAustin Clements <austin@google.com>
Tue, 17 Oct 2023 16:32:52 +0000 (12:32 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 18 Oct 2023 14:46:53 +0000 (14:46 +0000)
commit66287d55060d6ca3e9bc81f11dc66dda1cef2633
tree7b4adea2876013f1a92fb91547e17c70fb3eef69
parentce25ad60bb6b77552393de8e197e08ff06dcba6e
cmd/go: drop unnecessary Package arguments

There are several functions that take both an Action argument and a
Package argument. It takes a decent amount of work to determine that
in all cases the value of the Package argument is just Action.Package.
This makes these Package arguments both redundant and potentially
confusing because it makes these APIs look like they have more
flexibility than they actually do.

Drop these unnecessary Package arguments.

For #62067.

Change-Id: Ibd3295cf6a79d95ceb421d60671f87e023517f8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/536095
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/work/exec.go