Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option get to regex that match the go cmd #4911

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ class GoModUpdater
/fatal: The remote end hung up unexpectedly/,
/repository '.+' not found/,
# (Private) module could not be fetched
/go: .*: git (fetch|ls-remote) .*: exit status 128/m.freeze,
/go(?: get)?: .*: git (fetch|ls-remote) .*: exit status 128/m.freeze,
# (Private) module could not be found
/cannot find module providing package/.freeze,
# Package in module was likely renamed or removed
/module .* found \(.*\), but does not contain package/m.freeze,
# Package pseudo-version does not match the version-control metadata
# https://golang.google.cn/doc/go1.13#version-validation
/go: .*: invalid pseudo-version/m.freeze,
/go(?: get)?: .*: invalid pseudo-version/m.freeze,
# Package does not exist, has been pulled or cannot be reached due to
# auth problems with either git or the go proxy
/go: .*: unknown revision/m.freeze,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is already handled in #4910

# Package pointing to a proxy that 404s
/go: .*: unrecognized import path/m.freeze
/go(?: get)?: .*: unrecognized import path/m.freeze
].freeze

MODULE_PATH_MISMATCH_REGEXES = [
/go(?: get)?: ([^@\s]+)(?:@[^\s]+)?: .* has non-.* module path "(.*)" at/,
/go: ([^@\s]+)(?:@[^\s]+)?: .* unexpected module path "(.*)"/,
/go(?: get)?: ([^@\s]+)(?:@[^\s]+)?: .* unexpected module path "(.*)"/,
/go(?: get)?: ([^@\s]+)(?:@[^\s]+)?:? .* declares its path as: ([\S]*)/m
].freeze

Expand Down