]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: remove tests that assume lack of new versions of external modules
authorBryan C. Mills <bcmills@google.com>
Thu, 9 Feb 2023 21:37:51 +0000 (16:37 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 10 Feb 2023 17:29:28 +0000 (17:29 +0000)
commitaa5b22552ac353c79ad1e8b6202ab4fa131338ef
treec381dcaca17416301739f5f5248e386e24f59d56
parent2b807e1d7b00a26aa6a26fa47129bac3f711e5f5
cmd/go: remove tests that assume lack of new versions of external modules

In general it seems ok to assume that an open-source module that did
exist will continue to do so — after all, users of open-source modules
already do that all the time. However, we should not assume that those
modules do not publish new versions — that's really up to their
maintainers to decide.

Two existing tests did make that assumption for the module
gopkg.in/natefinch/lumberjack.v2. Let's remove those two tests.
If we need to replace them at some point, we can replace them with
hermetic test-only modules (#54503) or perhaps modules owned by the Go
project.

Fixes #58445.

Change-Id: Ica8fe587d86fc41f3d8445a4cd2b8820455ae45f
Reviewed-on: https://go-review.googlesource.com/c/go/+/466860
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/go/internal/modfetch/coderepo_test.go