]> Cypherpunks repositories - gostls13.git/commit
cmd/go: refactor modload.CheckRetractions
authorJay Conrod <jayconrod@google.com>
Wed, 31 Mar 2021 18:25:33 +0000 (14:25 -0400)
committerJay Conrod <jayconrod@google.com>
Mon, 5 Apr 2021 15:29:16 +0000 (15:29 +0000)
commit6ed045b365731e59fcae48de48f1aea7a6304eb3
tree1165022356b7414f10b6300b0990dd30781a5a2f
parentee51e3d89520221fb572b54851f6c642df3bd4da
cmd/go: refactor modload.CheckRetractions

Extract queryLatestVersionIgnoringRetractions, which returns the
version we should load retractions and deprecations from. This will be
shared with CheckDeprecations.

Rename ShortRetractionRationale to ShortMessage. This will be used to
shorten deprecation warnings as well.

For #40357

Change-Id: Ic1e0c670396bdb3bd87c7a97cf2b14ca58ea1d80
Reviewed-on: https://go-review.googlesource.com/c/go/+/306332
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/modfile.go
src/cmd/go/testdata/script/mod_retract_rationale.txt