diff options
| author | Michael Matloob <matloob@golang.org> | 2024-05-24 15:18:00 -0400 |
|---|---|---|
| committer | Michael Matloob <matloob@golang.org> | 2024-05-28 17:00:51 +0000 |
| commit | 94aeedc33a4434f0d410be7c42e0bbcdaedd790f (patch) | |
| tree | 79b32a412e86f764c3c50aac3b31b3b533b372dc /src/database/sql | |
| parent | 377646589d5fb0224014683e0d1f1db35e60c3ac (diff) | |
| download | go-94aeedc33a4434f0d410be7c42e0bbcdaedd790f.tar.xz | |
cmd/go/internal/load: clone pgo variant's PackagePublic.Imports in split
Before this change the pgo and non-pgo variants Imports slices pointed
to the same array, so modifying the pgo variant's Imports slice to add
the .ForMain suffix modified the non-pgo vairant's Imports slice too.
This change clones the imports slice to avoid that.
Fixes #66218
Change-Id: Ic936086f2c31f2056988d6546216142e4fce4d8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/588275
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
