You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible that a module version does not exist today, but does exist at a later time. For example, github.com/uber/cadence@v0.21.1 is an unpublished version of github.com/uber/cadence, and http://proxy.golang.org/github.com/uber/cadence/@v/v0.21.1.info will return not found: github.com/uber/cadence@v0.21.1: invalid version: unknown revision v0.21.1.
We should ensure that module versions are reprocessed when they are published to the index. Additionally, after a certain period of time, users should be allowed to refetch a path via frontend fetch.
When a module is added for the first time using InsertIndexVersions,
set the status to 0, even if the module already exists in
module_version_states. That way we will prioritize reprocessing this
module, in case its previous status was a non-2xx code.
For golang/go#46117
Change-Id: Ie2c01a84449a0bb2e446a0c1388b315b580d3b12
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/319049
Trust: Julie Qiu <julie@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
We've been updating the status to 0 on every module that comes from
the index, even if it's already in the DB with a different status.
While we do want to change the status when it's reasonable to
reprocess (see the linked issue below), we don't in most other cases.
So only update the status when we see a 404.
For golang/go#46117
Change-Id: I2774a0e5637873754cf69805bf154aaab632b0b8
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328929
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
It's possible that a module version does not exist today, but does exist at a later time. For example, github.com/uber/cadence@v0.21.1 is an unpublished version of github.com/uber/cadence, and http://proxy.golang.org/github.com/uber/cadence/@v/v0.21.1.info will return
not found: github.com/uber/cadence@v0.21.1: invalid version: unknown revision v0.21.1
.Because a user has attempted to fetch https://pkg.go.dev/github.com/uber/cadence@v0.21.1, the 404 page does not show a
Request
button.We should ensure that module versions are reprocessed when they are published to the index. Additionally, after a certain period of time, users should be allowed to refetch a path via frontend fetch.
See https://gophers.slack.com/archives/C0166L4QGJV/p1620759674026900 for context.
The text was updated successfully, but these errors were encountered: