]> Cypherpunks repositories - gostls13.git/commit
cmd/go: show deprecation message on go run/install
authorAudi P. R. Putra <doelaudi@gmail.com>
Fri, 15 Sep 2023 16:37:53 +0000 (23:37 +0700)
committerMichael Matloob <matloob@golang.org>
Thu, 21 Mar 2024 17:25:54 +0000 (17:25 +0000)
commit5e1e3a002528714f7c5954dd13068a89f41f747a
tree986fbc6c4e55d32c32d38cb3477c2501853c3950
parentd9f97467946556e94817acbb35fef7f536afed5f
cmd/go: show deprecation message on go run/install

Add check for deprecations in PackagesAndErrorsOutsideModule. This affects go run/install outside module when run in module-aware mode.

Fixes #59230

Change-Id: I106df36a856894fb1b634decfa812e31cf88fe74
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/528775
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/mod/example.com_deprecated_a_v1.0.0.txt
src/cmd/go/testdata/mod/example.com_deprecated_a_v1.9.0.txt
src/cmd/go/testdata/mod/example.com_undeprecated_v1.0.0.txt
src/cmd/go/testdata/mod/example.com_undeprecated_v1.0.1.txt
src/cmd/go/testdata/script/mod_install_pkg_version.txt
src/cmd/go/testdata/script/mod_list_deprecated.txt
src/cmd/go/testdata/script/mod_run_pkg_version.txt