diff options
author | Bryan C. Mills <bcmills@google.com> | 2023-02-09 16:37:51 -0500 |
---|---|---|
committer | David Chase <drchase@google.com> | 2023-02-10 17:29:40 +0000 |
commit | 1fa2deb1b1a620511a3c45fcbae895e78d4f5d40 (patch) | |
tree | 0b8196b4aa5d4d5dcbb0c2c2f92d7953898ae86d | |
parent | a943fd0cccc6043e6a3397659f3f262544e615b2 (diff) | |
download | go-1fa2deb1b1a620511a3c45fcbae895e78d4f5d40.tar.gz go-1fa2deb1b1a620511a3c45fcbae895e78d4f5d40.zip |
[release-branch.go1.20] 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.
Updates #58445.
Fixes #58450.
Change-Id: Ica8fe587d86fc41f3d8445a4cd2b8820455ae45f
Reviewed-on: https://go-review.googlesource.com/c/go/+/466861
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: David Chase <drchase@google.com>
-rw-r--r-- | src/cmd/go/internal/modfetch/coderepo_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/cmd/go/internal/modfetch/coderepo_test.go b/src/cmd/go/internal/modfetch/coderepo_test.go index 553946ba36..8ccd9b2dca 100644 --- a/src/cmd/go/internal/modfetch/coderepo_test.go +++ b/src/cmd/go/internal/modfetch/coderepo_test.go @@ -405,18 +405,6 @@ var codeRepoTests = []codeRepoTest{ zipFileHash: "c15e49d58b7a4c37966cbe5bc01a0330cd5f2927e990e1839bda1d407766d9c5", }, { - vcs: "git", - path: "gopkg.in/natefinch/lumberjack.v2", - rev: "latest", - version: "v2.0.0-20170531160350-a96e63847dc3", - name: "a96e63847dc3c67d17befa69c303767e2f84e54f", - short: "a96e63847dc3", - time: time.Date(2017, 5, 31, 16, 3, 50, 0, time.UTC), - gomod: "module gopkg.in/natefinch/lumberjack.v2\n", - zipSum: "h1:AFxeG48hTWHhDTQDk/m2gorfVHUEa9vo3tp3D7TzwjI=", - zipFileHash: "b5de0da7bbbec76709eef1ac71b6c9ff423b9fbf3bb97b56743450d4937b06d5", - }, - { vcs: "git", path: "gopkg.in/natefinch/lumberjack.v2", // This repo has a v2.1 tag. @@ -820,11 +808,6 @@ var codeRepoVersionsTests = []struct { }, { vcs: "git", - path: "gopkg.in/natefinch/lumberjack.v2", - versions: []string{"v2.0.0"}, - }, - { - vcs: "git", path: "vcs-test.golang.org/git/odd-tags.git", versions: nil, }, |