From: Michael Matloob Date: Tue, 3 Sep 2024 15:26:09 +0000 (-0400) Subject: src/cmd/go/internal/load: remove PackageError.Hard X-Git-Tag: go1.24rc1~956 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=42d1f08cbbe32f3734ed701975897654ae25efe6;p=gostls13.git src/cmd/go/internal/load: remove PackageError.Hard This field isn't actually used. The last usage was deleted in CL 518775 and even then it wasn't actually being set. Change-Id: Ifbe9da9c2a6d81a40c136a60028902176f443588 Reviewed-on: https://go-review.googlesource.com/c/go/+/610255 Reviewed-by: Sam Thanawalla LUCI-TryBot-Result: Go LUCI --- diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go index 17bba88f79..9f3c914597 100644 --- a/src/cmd/go/internal/load/pkg.go +++ b/src/cmd/go/internal/load/pkg.go @@ -459,7 +459,6 @@ type PackageError struct { Pos string // position of error Err error // the error itself IsImportCycle bool // the error is an import cycle - Hard bool // whether the error is soft or hard; soft errors are ignored in some places alwaysPrintStack bool // whether to always print the ImportStack }