x/pkgsite: flag exclude and replace in go.mod #47094
Labels
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
currently, there is a listing for "Valid go.mod file" in the "Details" section. it makes sense that this is more of a presence/absence and syntax check, but I was caught off guard when I could not go-get something reported as "Valid":
it turned out that this module had an
require
version andreplace
d it with the local file system. bothreplace
andexclude
are intended for local development and temporary workarounds, see #37559, thus it seems reasonable to flag such modules. it is possible to craft ago.mod
withexclude
orreplace
directives that also works with go-get, but considering it behaves differently as a main and dependent module, it still seems worth flagging.The text was updated successfully, but these errors were encountered: